<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>4 Sep 2017 11:19:00 Z</lastBuildDate><pubDate>1 Sep 2017 04:34:00 Z</pubDate><description>Hello Gang ! Namaste !!&#13;
Here are two piece of code :&#13;
&#13;
*****************************************&#13;
// Find the first record for which&#13;
// the CUSTOMER name is MOORE&#13;
HReadSeekFirst(CUSTOMER, NAME, "MOORE")&#13;
IF HFound(CUSTOMER) = False THEN&#13;
Error("Customer not found")&#13;
RETURN&#13;
ELSE&#13;
// Continue the process on the customer named MOORE&#13;
END&#13;
&#13;
*****************************************&#13;
IF HReadSeekFirst(CUSTOMER, NAME, "MOORE") = False then&#13;
Error("Customer not found")&#13;
RETURN&#13;
ELSE&#13;
// Continue the process on the customer named MOORE&#13;
END&#13;
**************************************&#13;
&#13;
What is the difference between these two codes ?? Should I call HFound() after HReadSeekFirst / HReadSeekLast ??&#13;
Which is Better Practice ??&#13;
Thanks!!</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp</link><title>Question on HReadSeekFirst / HFound()</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/62478-question-hreadseekfirst-hfound-62524/read.awp</comments><pubDate>4 Sep 2017 11:19:00 Z</pubDate><description>Hi Guenter,&#13;
&#13;
Indeed, this stuff is all still there for compatibility reasons.&#13;
I don't remember ever using HReadFirst anymore,…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62524/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62524/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62514/read.awp</comments><pubDate>3 Sep 2017 18:55:00 Z</pubDate><description>Hi Piet, you're right!&#13;
&#13;
However, there is a small but important difference between HReadSeekFirst(...) and the much older HRea…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62514/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62514/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62508/read.awp</comments><pubDate>3 Sep 2017 10:59:00 Z</pubDate><description>Hi Fabrice,&#13;
&#13;
I have to disagree on this one. The Help says:&#13;
HReadSeekFirst (Function)&#13;
Positions on the first record of a dat…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62508/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62508/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62507/read.awp</comments><pubDate>3 Sep 2017 07:44:00 Z</pubDate><description>Hi Art, I agree on that, definitely!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62507/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62507/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62506/read.awp</comments><pubDate>3 Sep 2017 07:25:00 Z</pubDate><description>ICI,&#13;
&#13;
I agree with you. I also for many years now write code as close to how I can speak it so that it becomes as obvious as p…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62506/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62506/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62505/read.awp</comments><pubDate>3 Sep 2017 00:10:00 Z</pubDate><description>Hello Art,&#13;
&#13;
now, that one, I want to publish as a citation on the front page of my web site :-)&#13;
&#13;
Can I? Can I? Please!Please…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62505/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62505/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62499/read.awp</comments><pubDate>2 Sep 2017 16:36:00 Z</pubDate><description>I have always followed the maxim that you need to design and code with the thought that the next developer that maintains your c…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62499/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62499/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62498/read.awp</comments><pubDate>2 Sep 2017 14:54:00 Z</pubDate><description>My 2 cents,&#13;
&#13;
if hreadseek(F_Customer,asName,"MOORE",hidentical)=false then&#13;
//test if DB error and manage or if simply not fou…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62498/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62498/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62495/read.awp</comments><pubDate>2 Sep 2017 01:12:00 Z</pubDate><description>If we want to be so precise in mm I use this combination of few codes from there:&#13;
&#13;
I prefer this:&#13;
&#13;
sName is string = "MOORE"…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62495/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62495/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62487/read.awp</comments><pubDate>1 Sep 2017 12:25:00 Z</pubDate><description>I think Frans might be the winner in the processing time efficiency stakes, but I agree with ICI, I too use the "easy to read an…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62487/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62487/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62485/read.awp</comments><pubDate>1 Sep 2017 11:03:00 Z</pubDate><description>Or even shorter :&#13;
&#13;
IF NOT HReadSeekFirst(CUSTOMER, NAME, "MOORE") then Error("Customer not found") RETURN END // Continue the …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62485/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62485/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62483/read.awp</comments><pubDate>1 Sep 2017 10:14:00 Z</pubDate><description>Hello,&#13;
&#13;
I think this is shorter and easy to read&#13;
&#13;
&#13;
IF HReadSeekFirst(CUSTOMER, NAME, "MOORE") then&#13;
/ Continue the process …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62483/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62483/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62481/read.awp</comments><pubDate>1 Sep 2017 08:15:00 Z</pubDate><description>I use first method. Like to have clear code, easy to read. Both situations are correct. You use what ever you prefer .</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62481/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62481/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62480/read.awp</comments><pubDate>1 Sep 2017 08:08:00 Z</pubDate><description>Hi Binod,&#13;
&#13;
I use the second method a lot. It is shorter and it works like it should.&#13;
It works imho the same as calling HFound…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62480/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound-62480/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62478-question-hreadseekfirst-hfound/read.awp">Question on HReadSeekFirst / HFound()</source><title>Re: Question on HReadSeekFirst / HFound()</title></item></channel></rss>
