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

  • Thread starter Thread starter OctavioOlguin
  • Start date Start date
Status
Not open for further replies.
O

OctavioOlguin

Guest
Hi... I saw the aswers yesterday while on the run, and prepared to came with my sword unsheathed today. But I see that someone commented on the left to right issue. My point is the following. In the next sentence, if for some reason the first condition fails then AVM will check the SECOND part of the OR clause. and being that the record could be available (OR not) i'll test some condition on it, so I have to make sure that it is available. IF (NOT AVAILABLE(X1)) OR (AVAILABLE(X1) AND X1.Field1 = "1") this is simple. I have to do something in case the record wont' exis, or if it exists, do something only if it is some special kind of record (as stated by the Field! being "1"). I use that for a case where customer won't exists, or it exists, but for conditions like addres or so, don't have to be taken on account. I ended doing this way instead of: IF NOT AVAILABLE X1 THEN DO: RUN proc1. END. ELSE IF AVAILABLE(1) AND X1.Field1 = "1" THEN run proc1.

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