<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>7 Jul 2015 15:53:00 Z</lastBuildDate><pubDate>6 Jul 2015 18:06:00 Z</pubDate><description>I have a thread that runs a query to get a list of items. Within that thread I pass the query initialized with data to a procedure that runs on the main thread. Then I add the data to a table control. This all worked fine until I added a paramater to my query. Now when I pass the query, it comes out the other side with no data. The first one works, the second one does not. Both queries gather the right data, but the second one does not pass correctly as a parameter.&#13;
&#13;
IF HExecuteQuery(QRY_ItemList) THEN DisplayTable(QRY_ItemList) RESULT True ELSE RESULT False END IF HExecuteQuery(QRY_ItemList,hQueryDefault,gnCurrentLocation) THEN DisplayTable(QRY_ItemList) RESULT True ELSE RESULT False END&#13;
Procedure Code:&#13;
PROCEDURE DisplayMemoryTable(plantQuery is Data Source) FileToMemoryTable(WIN_Main.TABLE_ManagePlantTable,plantQuery)</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52981-wd20-passing-query-parameter/read.awp</link><title>[WD20] Passing a Query as a Parameter</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/52981-wd20-passing-query-parameter-52986/read.awp</comments><pubDate>7 Jul 2015 15:53:00 Z</pubDate><description>I'm only running one If statement at a time. What I would like to know is why the second one passes an empty data set, but the f…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52981-wd20-passing-query-parameter-52986/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52981-wd20-passing-query-parameter-52986/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52981-wd20-passing-query-parameter/read.awp">[WD20] Passing a Query as a Parameter</source><title>Re: [WD20] Passing a Query as a Parameter</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52981-wd20-passing-query-parameter-52985/read.awp</comments><pubDate>6 Jul 2015 23:42:00 Z</pubDate><description>First. You have executed query 1st time and need to reExecuteQuery, next time, or you can use hCancelDeclaration(QRY_Item_List) …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52981-wd20-passing-query-parameter-52985/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52981-wd20-passing-query-parameter-52985/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52981-wd20-passing-query-parameter/read.awp">[WD20] Passing a Query as a Parameter</source><title>Re: [WD20] Passing a Query as a Parameter</title></item></channel></rss>
