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!!
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!!