<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>2 Apr 2015 11:37:00 Z</lastBuildDate><pubDate>31 Mar 2015 14:36:00 Z</pubDate><description>Hello,&#13;
&#13;
I want to use a seek on a composite key. But I want to use only the first element of 2 elements.&#13;
&#13;
It is also possible that I seek like this [elem1,elem2] on a key with 3 elements.&#13;
&#13;
When a execute a line like this&#13;
&#13;
HreadseekFirst(aDataFile,MyTrippleCompositeKey,[elem1,elem2])&#13;
&#13;
There is no error but HFound() gives a false.&#13;
&#13;
The thirth element guarantees me that I found the wanted record.&#13;
&#13;
What is the best way to seek with 2 elements in a 3 elements composite key.&#13;
&#13;
Thanks.&#13;
&#13;
Willy Hermans</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp</link><title>What is the best way to seek with 2 elements in a 3 elements composite key.</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/51274-what-best-way-seek-with-2-elements-51319/read.awp</comments><pubDate>2 Apr 2015 11:37:00 Z</pubDate><description>... or use a query ...&#13;
IMHO the way to go in the 21st century...&#13;
&#13;
Just my 2 cents,&#13;
&#13;
Peter H.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51319/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51319/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp">What is the best way to seek with 2 elements in a 3 elements composite key.</source><title>Re: What is the best way to seek with 2 elements in a 3 elements composite key.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51292/read.awp</comments><pubDate>1 Apr 2015 08:53:00 Z</pubDate><description>Did u try use HBuildKeyValue(). I am using it when have situation like yours and it works for me.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51292/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51292/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp">What is the best way to seek with 2 elements in a 3 elements composite key.</source><title>Re: What is the best way to seek with 2 elements in a 3 elements composite key.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51290/read.awp</comments><pubDate>1 Apr 2015 02:01:00 Z</pubDate><description>Hi&#13;
&#13;
You could use this syntax as well&#13;
&#13;
&#13;
FOR ALL xxx WHERE compisitekey = [1,2]&#13;
&#13;
End&#13;
&#13;
regards&#13;
&#13;
Allard</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51290/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51290/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp">What is the best way to seek with 2 elements in a 3 elements composite key.</source><title>Re: What is the best way to seek with 2 elements in a 3 elements composite key.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51282/read.awp</comments><pubDate>31 Mar 2015 16:03:00 Z</pubDate><description>OK,&#13;
&#13;
again many thanks.&#13;
&#13;
Conclusion :&#13;
&#13;
1) In coding a function like HReadSeekFirstSoft(DataFile,Key,Parameter) should be v…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51282/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51282/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp">What is the best way to seek with 2 elements in a 3 elements composite key.</source><title>Re: What is the best way to seek with 2 elements in a 3 elements composite key.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51281/read.awp</comments><pubDate>31 Mar 2015 15:42:00 Z</pubDate><description>Hi Willy,&#13;
&#13;
If you want to make a suggestion, send it to the Free Technical Support.&#13;
&#13;
I agree with your point. But you can al…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51281/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51281/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp">What is the best way to seek with 2 elements in a 3 elements composite key.</source><title>Re: What is the best way to seek with 2 elements in a 3 elements composite key.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51280/read.awp</comments><pubDate>31 Mar 2015 15:28:00 Z</pubDate><description>Hi,&#13;
&#13;
Many thanks for the answers.&#13;
&#13;
Now a suggestion to the WinDev developers. I hope they are also reading this forum.&#13;
&#13;
My…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51280/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51280/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp">What is the best way to seek with 2 elements in a 3 elements composite key.</source><title>Re: What is the best way to seek with 2 elements in a 3 elements composite key.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51279/read.awp</comments><pubDate>31 Mar 2015 15:10:00 Z</pubDate><description>Hi Willy,&#13;
&#13;
You do it correctly. There are no errors.&#13;
&#13;
Do not forget that you seek on a key with 3 elements and you only have…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51279/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51279/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp">What is the best way to seek with 2 elements in a 3 elements composite key.</source><title>Re: What is the best way to seek with 2 elements in a 3 elements composite key.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51278/read.awp</comments><pubDate>31 Mar 2015 14:55:00 Z</pubDate><description>Hi,&#13;
why you don't add another composite key for the 2 searched elements?&#13;
If Hreadseekfirst returns true, then you can check if…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51278/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51278/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp">What is the best way to seek with 2 elements in a 3 elements composite key.</source><title>Re: What is the best way to seek with 2 elements in a 3 elements composite key.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51277/read.awp</comments><pubDate>31 Mar 2015 14:54:00 Z</pubDate><description>Hi Willy&#13;
&#13;
I don't know about the best way, but this is what I would do:&#13;
hfilter(aDataFile,MyTrippleCompositeKey,[elem1,elem2,…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51277/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements-51277/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51274-what-best-way-seek-with-2-elements/read.awp">What is the best way to seek with 2 elements in a 3 elements composite key.</source><title>Re: What is the best way to seek with 2 elements in a 3 elements composite key.</title></item></channel></rss>
