Get the index of a field that is in the same row as the text. The text may be before or after the field in the same row as the field. An index of -1 means either the text was not found or there is no field before or after the text in the row where the text was found.This action is only valid when using IBM 5250 or 5555 emulation.
Parameters
Screen Text |
The text on the same row as the field. |
Text Before Field |
Indicates whether the text is before or after the field. |
Ignore Case |
Indicates whether the case of the letters is taken into consideration. |
Format
Get_Field_Index_Row_Text (Screen Text, Text Before Field, Ignore Case)
Return Value
Returns a Boolean. TRUE if the text is before the field, FALSE if the text is after the field.
Example
Script(Get_Field_Index_Row_Text_Test)
String(strTextInRow)
Boolean(bTextBeforeField)
Number(nFieldIndex)
Activate(From_Menu)
strTextInRow = Ask_String("Enter some text on the same row as the field", "Get_Field_Index_Row_Text", 1, 99, "")
bTextBeforeField = Ask_Yes_No("Is the text before the field?", "Get_Field_Index_Row_Text", FALSE)
nFieldIndex = Get_Field_Index_Row_Text(strTextInRow, bTextBeforeField, FALSE)
Message(String_Combine("Field ID (0 is first field): ", Number_To_String_Decimal(nFieldIndex)), 5)
Return
See Also
Get_Num_Fields, Get_Field_Index_Column_Text, Get_Field_Row, Get_Field_Length, Get_Field_Symbology_Operator, Set_Field_Append_Scan_Data, Set_Field_Com_Data_Field, Set_Field_Prefix_Scan_Data, Get_Field_Append_Scan_Data, Get_Field_Column, Get_Num_Field_Data_IDs, Get_Num_Field_Symbology_IDs, Get_Field_Com_Data_Field, Set_Field_Data_ID, Set_Field_Symbology_ID, Get_Field_Symbology_ID
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other