Re: NEXT FIELD error 1119 in CONSTRUCT
Posted in 1996
Vadim Park wrote: } } Hi, } I've encountered the problem in CONSTRUCT .. NEXT FIELD option. } When I run the following code I get the error in BEFORE FIELD section } } FORMS statement error number -1119 } NEXT FIELD name not found in form } } ----------------- .4gl ------------------------ } database tax } main } define } scratch char(512) } } open window win1 at 3,3 } with form "screen1" } } construct scratch } on } tbl.sname, tbl.lname, tbl.podr } from } s_screen1.sname, s_screen1.lname, s_screen1.podr } } before field lname } if get_fldbuf(sname) is not null then } next field podr } end if } end construct } } end main } Vadim, you must either use the statement NEXT FIELD s_screen1.podr or if you want to use the statement NEXT FIELD podr you must change your CONSTRUCT statement in: CONSTRUCT BY NAME scratch on tbl.sname, tbl.lname, tbl.podr eitherwise CONSTRUCT doesn't recognize your field. Yours, Tolis Varnas +---------------------------------------------------------------------+ | Tolis Varnas email: tvarnas@compulink.gr | | Deligiorgi 26 tvarnas@orbit.de | | 546 42 Thessaloniki Voice: (30) 31 820270 | | Greece Fax: (30) 31 865463 | +---------------------------------------------------------------------+