[progress Communities] [progress Openedge Abl] Forum Post: Re: If Not Available(tablex) Or...

  • Thread starter Thread starter pliscki
  • Start date Start date
Status
Not open for further replies.
P

pliscki

Guest
The syntax, or better saying, the logic you've been using is redundant. Therefore, there's no need to use it. The snippet you saw is completely RIGHT. Your example, on the other hand, is logically wrong as the right side of the OR clause will always be false, thus, ABL will evaluate the left side and since the record is not available, ABL will throw an error. Now, why this snippet is right? 1º ABL evaluate OR from right to left. 2º "AVAILABLE" is an ABL function the returns TRUE if the record is available and FALSE if not Therefore considering the TableX is not available: /* record not available */ FIND FIRST tableX NO-ERROR. /* Output false */ DISP AVAILABLE TableX. /* Output true because of NOT */ DISP NOT AVAILABLE TableX. You're misunderstanding things because you didn't understand the usage of NOT. Lastly, I gotta be honest, you lack some basic logical thinking for someone with 20yrs of experience.

Continue reading...
 
Status
Not open for further replies.
Back
Top