<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>13 Feb 2018 11:14:00 Z</lastBuildDate><pubDate>3 Feb 2018 13:53:00 Z</pubDate><description>Hi All&#13;
&#13;
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.&#13;
&#13;
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:&#13;
&#13;
HExecuteSQLQuery(test, "select * from customer where customer code = whatever")&#13;
&#13;
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.&#13;
&#13;
I did a bit of reading and came across:&#13;
&#13;
HCancelDeclaration(test)&#13;
&#13;
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?&#13;
&#13;
I hope that makes sense.&#13;
Cheers&#13;
André</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp</link><title>Data Source Best Practice</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64552/read.awp</comments><pubDate>13 Feb 2018 11:14:00 Z</pubDate><description>ccc2 - thanks for that.&#13;
&#13;
Well, this turned out to be a false alarm. But I have learnt a lot in the process. Hopefully others h…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64552/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64552/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>VirtualSoftware</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64536/read.awp</comments><pubDate>12 Feb 2018 10:07:53 Z</pubDate><description>Hi Art&#13;
Your still alive, you old fart&#13;
My eMail is virtualsoft@outlook.com&#13;
There are some issues I would rather talk to you ab…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64536/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64536/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64533/read.awp</comments><pubDate>11 Feb 2018 18:16:00 Z</pubDate><description>Hi,&#13;
&#13;
I always call hcanceldeclaration() before hexecutequery() . for HExecuteSQLQuery() no need.&#13;
&#13;
this is because early days…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64533/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64533/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64534/read.awp</comments><pubDate>11 Feb 2018 14:44:00 Z</pubDate><description>Hi&#13;
&#13;
Difference between data source and no data source:&#13;
&#13;
at the beginning, data sources did not exist in wlanguage...&#13;
&#13;
So w…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64534/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64534/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64532/read.awp</comments><pubDate>10 Feb 2018 19:43:00 Z</pubDate><description>DerekT - "test" is the name Andre gave to his query. I would have called it QryPhones or some other such silly name.&#13;
&#13;
Andre - …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64532/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64532/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64535/read.awp</comments><pubDate>10 Feb 2018 18:13:00 Z</pubDate><description>Hi&#13;
&#13;
Art - I missed not declaring a DS - but I thought that was implicit if not declared.&#13;
&#13;
Fabrice - I did miss that but I do…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64535/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64535/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64531/read.awp</comments><pubDate>10 Feb 2018 17:33:00 Z</pubDate><description>I understand what both you and Fabrice are saying but.....&#13;
&#13;
What is 'test' in your example?&#13;
My take on this has always been t…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64531/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64531/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64527/read.awp</comments><pubDate>10 Feb 2018 17:00:00 Z</pubDate><description>Also I have an issue with your code, or maybe I just don't understand what you are trying to do. In this part of the code:&#13;
&#13;
IF…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64527/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64527/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64525/read.awp</comments><pubDate>10 Feb 2018 16:50:00 Z</pubDate><description>Andre, let me take a stab at this. I am no expert, but I think I see where Fabrice is coming from.&#13;
&#13;
I think you are mixing con…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64525/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64525/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64526/read.awp</comments><pubDate>10 Feb 2018 13:59:00 Z</pubDate><description>Hi André,&#13;
&#13;
that is NOT what I was advising... Your do NOT need an array... just run the query WITHOUT declaring a data source.…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64526/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64526/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64509/read.awp</comments><pubDate>9 Feb 2018 20:23:00 Z</pubDate><description>Hi Fabrice&#13;
&#13;
I am 100% convinced now that the problem is with the data source. I have moved the query outside of the iteration …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64509/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64509/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64500/read.awp</comments><pubDate>9 Feb 2018 12:30:00 Z</pubDate><description>Hi André&#13;
&#13;
as you seem to think that your problem comes from the data source, did you try to run your code without using one?&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64500/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64500/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64482/read.awp</comments><pubDate>8 Feb 2018 19:24:00 Z</pubDate><description>Hi DerekT&#13;
&#13;
Specific in that the iteration calls this query for each record in this specific procedure.&#13;
&#13;
It does run consecut…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64482/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64482/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64468/read.awp</comments><pubDate>8 Feb 2018 10:42:00 Z</pubDate><description>Is there a specific set of circumstances where your error occurs?&#13;
&#13;
Do you run this consecutively without closing the window in…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64468/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64468/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64465/read.awp</comments><pubDate>8 Feb 2018 09:39:00 Z</pubDate><description>It has not worked. Still get intermittent behaviour.&#13;
&#13;
Will have to take another route.&#13;
&#13;
:-(</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64465/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64465/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64404/read.awp</comments><pubDate>5 Feb 2018 12:40:00 Z</pubDate><description>Thanks to Fabrice and DerekT the problem appears to be sorted. It turns out that HFreeQuery uses HCancelDeclaration.&#13;
&#13;
Still te…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64404/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64404/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64393/read.awp</comments><pubDate>3 Feb 2018 23:08:00 Z</pubDate><description>Hi DerekT&#13;
&#13;
Cool. Never knew about HFreeQuery nor VariableReset. I am sure that this has been the issue all along.&#13;
&#13;
The 'P' i…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64393/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64393/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64392/read.awp</comments><pubDate>3 Feb 2018 19:55:00 Z</pubDate><description>Cancelling the query result is always important as is reseting any variables that have been used to insure that no 'historic' da…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64392/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64392/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64386/read.awp</comments><pubDate>3 Feb 2018 15:44:00 Z</pubDate><description>Hi Fabrice&#13;
&#13;
Thanks a ton for that. Then I think I may just have found my problem. Consider the code below:&#13;
&#13;
MyDataSource is …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64386/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64386/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64384/read.awp</comments><pubDate>3 Feb 2018 15:26:00 Z</pubDate><description>Hi André&#13;
&#13;
YES? you need to do a hcanceldeclaration after each query, or the result will stay in memory till the program ends, …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64384/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice-64384/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64380-data-source-best-practice/read.awp">Data Source Best Practice</source><title>Re: Data Source Best Practice</title></item></channel></rss>
