Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Question on HReadSeekFirst / HFound()

$
0
0
Hello Gang ! Namaste !!
Here are two piece of code :

*****************************************
// Find the first record for which
// the CUSTOMER name is MOORE
HReadSeekFirst(CUSTOMER, NAME, "MOORE")
IF HFound(CUSTOMER) = False THEN
Error("Customer not found")
RETURN
ELSE
// Continue the process on the customer named MOORE
END

*****************************************
IF HReadSeekFirst(CUSTOMER, NAME, "MOORE") = False then
Error("Customer not found")
RETURN
ELSE
// Continue the process on the customer named MOORE
END
**************************************

What is the difference between these two codes ?? Should I call HFound() after HReadSeekFirst / HReadSeekLast ??
Which is Better Practice ??
Thanks!!

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>