<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>24 Jul 2018 12:00:55 Z</lastBuildDate><pubDate>1 Mar 2018 16:49:00 Z</pubDate><description>1. How can I tell if a Data Source var has been initialized?&#13;
2. How can I access a threaded Data Source var in the main thread? I tried using a global data source, but that did not work. I also tried using the various constants for the second param in ThreadExecute(). Thread params are passed by value, not address, so I understand why dsRes isn't ever initialized in LoadTable().&#13;
&#13;
PROCEDURE LoadTable() IF ThreadState("ItemList") &lt;&gt; threadRunning THEN ThreadExecute("ItemList", threadNormal, ItemList, dsRes) ThreadWait("ItemList", 1000) END FOR EACH dsRes // Error here, dsRes is not initialized // Fill Table (TableAddLine()) END&#13;
PROCEDURE ItemList(dsRes is Data Source) sQry is string = "SELECT * FROM Universe" IF NOT HExecuteSQLQuery(dsRes,hQueryDefault,sQry) THEN Error("Oops") END</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64772-wd22-how-get-data-source-from-thread/read.awp</link><title>[WD22] How to Get Data Source from Thread</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>BigED</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64772-wd22-how-get-data-source-from-thread-66327/read.awp</comments><pubDate>24 Jul 2018 12:00:55 Z</pubDate><description>IF HFileExist(dsRes)&#13;
&#13;
Best regards!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64772-wd22-how-get-data-source-from-thread-66327/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64772-wd22-how-get-data-source-from-thread-66327/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64772-wd22-how-get-data-source-from-thread/read.awp">[WD22] How to Get Data Source from Thread</source><title>Re: [WD22] How to Get Data Source from Thread</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64772-wd22-how-get-data-source-from-thread-64841/read.awp</comments><pubDate>6 Mar 2018 08:01:00 Z</pubDate><description>Hi,&#13;
&#13;
You can build a class that holds the data and the function you call in a thread, that the data source can me a member var…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64772-wd22-how-get-data-source-from-thread-64841/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64772-wd22-how-get-data-source-from-thread-64841/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64772-wd22-how-get-data-source-from-thread/read.awp">[WD22] How to Get Data Source from Thread</source><title>Re: [WD22] How to Get Data Source from Thread</title></item></channel></rss>
