Invokes specified field and moves cursor to it.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X      


void go_field([name | number])
ident          name
int            number


name specifies the field by name.

number specifies the field by absolute field number. Otherwise, the last field number set in the window-name.AF variable is used.


When go_field() is specified in the window trigger, the first field is considered to be the current field. In this case, go_field(0) invokes the first field.


Useful in the field triggers to move between fields:
if (p.mode == 0) input(p.input_var); /* normal mode */
else raw_input(p.input_var);         /* query mode */
go_field();                          /* go to field specified by p.af */