Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WD20] Overloading HExecuteQuery() (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>