Set_Field_Data_ID

Sets the Data ID for a field. A field may have more than one Data ID. If the field already has a Data ID, this command will add another Data ID. Use a blank string to clear all Data IDs for the field.

Use actions like Get_Field_Index() to determine the index of a field.

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 ID String

The data identifier for the 5250 data field, blank to clear all data identifiers for the field.

Format

Set_Field_Data_ID (Field Index, "Data ID String")

Return Value

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

Example

Script(Set_Field_Data_ID_Test)
Boolean(bSetOK)
Activate(From_Menu)
bSetOK = Set_Field_Data_ID(0, "N")
If(bSetOK)
Message("Set_Field_Data_ID worked", 5)
Else
Message("Set_Field_Data_ID failed", 5)
End_If
Return

See Also

Set_Field_Symbology_ID, 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_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