PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] Overloading HExecuteQuery()
[WD20] Overloading HExecuteQuery()
Iniciado por guest, 10,nov. 2017 17:06 - No hay respuesta
Publicado el 10,noviembre 2017 - 17:06
Has anyone successfully overloaded HExecuteQuery()? I've overloaded HAdd, HModify, HDelete, and HExecuteSQLQuery with ease, but HExecuteQuery() will not behave. It seems built queries do not pass as params well. Below is my code for overloading HExecuteSQLQuery that works.

PROCEDURE HExecuteSQLQuery(DataSource is Data Source, Mode, SqlText is string) IF WL.HExecuteSQLQuery(DataSource, Mode, SqlText) THEN // My custom code here RESULT True ELSE RESULT False END
I've had all kinds of issues with overloading HExecuteQuery(). Now I can't even get it to run the overloaded function. WD is just messing with me now. Next is my code for the problem function.

PROCEDURE HExecuteQuery(Query) IF WL.HExecuteQuery(Query) THEN // Custom Code RESULT True ELSE RESULT False END