O
OctavioOlguin
Guest
For 20 years I've used: FIND sometable NO-LOCK NO-ERROR. IF NOT available(someForm) OR (Available(someForm) AND (somefield1 EQ NO) AND somefield2 = 3 AND some...) THEN MESSAGE "Case of something". ELSE MESSAGE "Another case". now few days back I saw a post somewhere around here that used the syntax on the title of post.. I know that the order of operators and logic of complex expresion are to be taken on account. But wonder, what's the logic of the compiler or runtime AVL (whichever one involved). In: " IF NOT AVAILABLE(tableX) OR tableX.FieldY = "somevalue" THEN... " the OR part should be evaluated even in the case that AVAILABLE() is false, but at this point the FIND was unsuccesful, so: why on earth won't be a NOT AVAILABLE BUFFER error for the tableX.FieldY = "somevalue" evaluation???? Just realized the very few knowledge of 4gl I got.
Continue reading...
Continue reading...