The function fgl_dialog_infield() has been developed to test the position of the cursor. Specifically, this function tests whether the cursor is located within a particular field. This field is passed as the argument in the function call. It returns the Boolean value of TRUE if the cursor is in the desired field when the function is called and a FALSE value otherwise.
This function is used when you need to perform an action based on the cursor’s current position.
For example, to test whether the cursor is in the 3rd field (f3):
IF fgl_dialog_infield("f3") THEN
ERROR "CORRECT! You are in the third field!"
CALL fgl_winmessage("Correct","Correct! You are in the third field","info")
ELSE
ERROR "WRONG! You are not in the third field, try again!"
END IF