Language Reference Guide : System Classes : FieldObject Class : WhichTableField Method
 
Share this page          
WhichTableField Method
The WhichTableField method determines which table field contains the given field.
This method has the following syntax:
table_field = form_field.WhichTableField()
or
table_field = menu_field.WhichTableField()
This method is useful for determining which table field is to be manipulated when you use a single control button to manipulate data in more than one table field or customize the control button's code to operate generically on any table field.
This method is most useful when called using the CurFrame.InputFocusField attribute:
TF = CurFrame.InputFocusField.WhichTableField()
if TF is not NULL then
    /* Process data on TF table field */
endif;
The WhichTableField method returns null if the field is not within a table field. If the triggering field is inside nested table fields, the innermost table field is returned.
For more information about using the WhichTableField method, see the Programming Guide.