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

Data Source Best Practice (2 replies)

$
0
0
Hi All

I think I may have found what may be an issue with data sources. The issue is most likely rather with me than with WX. I am needing to get my head into this black box.

I have a data source [say test] declared. I then step through an array and for each element in the array I am calling say:

HExecuteSQLQuery(test, "select * from customer where customer code = whatever")

Whatever is a field in the array. I am getting intermittent results where the data source is not being cleared and filled with the new data.

I did a bit of reading and came across:

HCancelDeclaration(test)

What does this actually do? Does it dispose of the data in test? Is it a good idea to invoke this after dealing with the data source and before getting ready to execute the next HExecuteSQLQuery?

I hope that makes sense.
Cheers
André

Viewing all articles
Browse latest Browse all 1914

Trending Articles



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