Set_Field_Prefix_Scan_Data

Sets the data prefixed to a field when the field is scanned. Use a blank string to clear the prefix data.

This action is only valid when using IBM 5250 or 5555 emulation.

Parameters

Field Index

The numeric index of the 5250 data field, index 0 is the first field.

Data To Prefix

Gets prefixed to the field data.

Format

Set_Field_Prefix_Scan_Data (Field Index, "Data To Prefix")

Return Value

Returns a Boolean. TRUE if successful, FALSE if the field index is not valid.

Example

Script(Set_Field_Prefix_Scan_Data_Test)
Boolean(bSetOK)
Activate(From_Menu)
bSetOK = Set_Field_Prefix_Scan_Data(0, "99")
If(bSetOK)
Message("Set_Field_Prefix_Scan_Data worked", 5)
Else
Message("Set_Field_Prefix_Scan_Data failed", 5)
End_If
Return

See Also

Set_Field_Data_ID, Set_Field_Symbology_ID, Get_Field_Symbology_Operator, Set_Field_Append_Scan_Data, Set_Field_Com_Data_Field, Get_Field_Append_Scan_Data, Get_Field_Data_ID, Get_Num_Field_Data_IDs, Get_Num_Field_Symbology_IDs, Get_Field_Com_Data_Field, Get_Field_Symbology_ID, Get_Num_Fields, Get_Field_Prefix_Scan_Data

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal