10-19-2007 1:40 PM
Hi.
I am trying to loop through some screen fields, and hence need to dynamically name the fields. I use the following codes, but it gave me an error:
*********************************
IF MAND_CHECK = 'X' AND (TXT_FILE) IS INITIAL.
"TXT_FILE is a variable that contains the name of the screen field.
SET CURSOR FIELD TXT_FILE.
"TXT_FILE is a variable that contains the name of the screen field.
ENDIF.
*********************************
Error: Fehlerhafter logischer Ausdruck "(TXT_FILE)": Nach "(".......
10-19-2007 3:38 PM
Do the following:
field-symbols: <fs> type any.
assign txt_file to <fs>.
if mand_check eq 'X' and <fs> is initial.
:
:
Regards,
Michael
10-19-2007 3:38 PM
Do the following:
field-symbols: <fs> type any.
assign txt_file to <fs>.
if mand_check eq 'X' and <fs> is initial.
:
:
Regards,
Michael
10-19-2007 3:53 PM
Ok, solved on this one, with minor changes:
should be: assign (txt_file) to <fs>.
and not: assign txt_file to <fs>.
(note the parenthesis)