<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>28 May 2015 12:44:12 Z</lastBuildDate><pubDate>26 May 2015 12:05:36 Z</pubDate><description>Hi guys,&#13;
&#13;
I have a table named CITY with these fields:&#13;
&#13;
ID is a numeric field (unique key)&#13;
Region is a string field (duplicated key)&#13;
Country is a string field (duplicated key)&#13;
City is a string field (duplicated key)&#13;
&#13;
Now I want to filter this table to find all the cities that are in a specific Region (example01) and a specific Country (example02):&#13;
&#13;
I use this filter:&#13;
&#13;
[code:wl]&#13;
HFilter(CITY,Region,"Region="+example01+" AND Country="+example02)&#13;
HreadFirst(CITY,Region)&#13;
IF HFound(CITY) THEN&#13;
// Do something&#13;
ELSE&#13;
// Do something else&#13;
END&#13;
HDeactivateFilter(CITY)&#13;
[/code]&#13;
&#13;
It seems this filter does not work because it never finds the searched records even if they do exist in the table.&#13;
What am I doing wrong?&#13;
&#13;
Thank you all for your care.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values/read.awp</link><title>Filter tables on two string values</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>antonino.neri</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52358/read.awp</comments><pubDate>28 May 2015 12:44:12 Z</pubDate><description>Hi Fabrice,&#13;
&#13;
thanks a lot for your time and help.&#13;
Now everything is clear to me :)&#13;
&#13;
&#13;
Kindest Regards</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52358/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52358/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values/read.awp">Filter tables on two string values</source><title>Re: Filter tables on two string values</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52355/read.awp</comments><pubDate>28 May 2015 11:09:32 Z</pubDate><description>Hi Antonino&#13;
&#13;
no... I would not in that case... There is a help page somewhere where &#13;
pcsoft is detailing what to use when (ge…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52355/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52355/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values/read.awp">Filter tables on two string values</source><title>Re: Filter tables on two string values</title></item><item><author>antonino.neri</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52353/read.awp</comments><pubDate>28 May 2015 09:37:00 Z</pubDate><description>Hi Fabrice,&#13;
&#13;
thanks again for the detailed explanation.&#13;
I do understand that a unique answer does not exist and that every ca…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52353/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52353/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values/read.awp">Filter tables on two string values</source><title>Re: Filter tables on two string values</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52349/read.awp</comments><pubDate>27 May 2015 23:29:15 Z</pubDate><description>Hi Antonino&#13;
&#13;
unfortunately, the answer to your question is much more complex than it &#13;
seems...&#13;
&#13;
In theory, a query should a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52349/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52349/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values/read.awp">Filter tables on two string values</source><title>Re: Filter tables on two string values</title></item><item><author>antonino.neri</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52339/read.awp</comments><pubDate>27 May 2015 18:02:45 Z</pubDate><description>Hi Fabrice,&#13;
&#13;
thanks again for your explanations :)&#13;
Just one more question: according your experience, which command is faster…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52339/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52339/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values/read.awp">Filter tables on two string values</source><title>Re: Filter tables on two string values</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52318/read.awp</comments><pubDate>26 May 2015 19:19:43 Z</pubDate><description>Hi Antonino,&#13;
&#13;
gald I could help... as for the composite key, it's simple, really&#13;
&#13;
with your syntax and keys available only o…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52318/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52318/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values/read.awp">Filter tables on two string values</source><title>Re: Filter tables on two string values</title></item><item><author>antonino.neri</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52314/read.awp</comments><pubDate>26 May 2015 17:45:57 Z</pubDate><description>Hi Fabrice,&#13;
&#13;
thanks a lot for your help. You are right, I was missing the single quote around my values:&#13;
&#13;
[code:wl]&#13;
HFilter…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52314/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52314/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values/read.awp">Filter tables on two string values</source><title>Re: Filter tables on two string values</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52307/read.awp</comments><pubDate>26 May 2015 14:57:21 Z</pubDate><description>Hi Antonino,&#13;
&#13;
without knowing the content of your variables, it's hard to say, but it &#13;
seems to me that you are missing the q…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52307/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values-52307/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52301-filter-tables-two-string-values/read.awp">Filter tables on two string values</source><title>Re: Filter tables on two string values</title></item></channel></rss>
