Language Reference Guide : 4. System Classes : FrameExec Class : NextTargetField Attribute
 
Share this page                  
NextTargetField Attribute
Data Type: ActiveField
4GL Access: R
The NextTargetField attribute is used to substitute for the TargetField attribute of FrameExec in cases when the user action is going to set the input focus to a field that is not yet present on the frame.
The NextTargetField attribute is set only if the TargetField attribute is set to NULL. The TargetField attribute can be set to NULL when:
The user clicks an append row of a tablefield.
The user action will scroll the tablefield.
The TargetField attribute is not mapped since the Exit event has not completed, and the 4GL code might still do a "Resume" that would prevent it from completing. NextTargetField is set in this case. Not all of its attributes are reliable, and the 4GL code should not try to set any attributes of the field. However, attributes for the tablefield column that never vary are reliable.
The NextTargetField attribute can be used to confirm that the target is in a tablefield and to determine which column of the tablefield is the target.