5 Controlling Forms

TFNUM Function

The function TFNUM returns the tab field number of the current tab position. It returns zero if the form is not active, or before the first position. A program can use this to test if the user has filled in all the fields of the form. For example:

10    INPUT
20    IF TFNUM%<4 THEN 10
30    ENTER A(1), A(2), A(3), A(4)
The user presses TAB to tab to each field. Pressing TAB in the last field will cause line 30 to be executed.


Eloquence Forms Manual - 19 DEC 2002