Re: Help w/ FORM/INPUT stmt
Posted in 1996
Kemp G Leon wrote: } } } Inside of my application, I am trying to determine the value of "post" and call some function if it is true. My code looks like this: } } INPUT BY NAME <fieldlist> WITHOUT DEFAULTS } AFTER FIELD p.post } IF p.post = 'Y' THEN } CALL xyz() } END IF } } At the top of the program, "post" is define as such: } } DEFINE p RECORD } ... } ... } } post CHAR(1) } END RECORD } } When I try to compile this, it bombs at the "AFTER FIELD" with a syntax } error. } } Any help will be appreciated. } } Thanks } } Leon. } kleon@osf1.gmu.edu } } Leon, you should use AFTER FIELD post in your code.It is not allowed in a AFTER FIELD clause of an INPUT BY NAME statement to use screen record elements. If you want to use the AFTER FIELD p.post statement you have to modify your INPUT BY NAME statement in: INPUT p.post WITHOUT DEFAULTS FROM post Yours, Tolis -- +---------------------------------------------------------------------+ | Tolis Varnas email: tvarnas@compulink.gr | | Deligiorgi 26 tvarnas@orbit.de | | 546 42 Thessaloniki Voice: (30) 31 820270 | | Greece Fax: (30) 31 865463 | +---------------------------------------------------------------------+