Get the index of a field that is in the same column as the text. The text may be above or below 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 column where the text was found.This action is only valid when using IBM 5250 or 5555 emulation.
Parameters
Screen Text |
The text in the same column as the field. |
Text Above Field |
Indicates whether the text is above or below the field. |
Ignore Case |
Indicates whether the case of the letters is taken into consideration. |
Format
Get_Field_Index_Column_Text (Screen Text, Text Above Field, Ignore Case)
Return Value
Returns a Boolean. TRUE if the text is above the field, FALSE if the text is below the field.
Example
Script(Get_Field_Index_Column_Text_Test)
String(strTextInColumn)
Boolean(bTextAboveField)
Number(nFieldIndex)
Activate(From_Menu)
strTextInColumn = Ask_String("Enter some text in the same column as the field", "Get_Field_Index_Column_Text", 1, 99, "")
bTextAboveField = Ask_Yes_No("Is the text above the field?", "Get_Field_Index_Column_Text", FALSE)
nFieldIndex = Get_Field_Index_Column_Text(strTextInColumn, bTextAboveField, 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_Row_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