Set_Field_Com_Data_Field

Sets a field to be the Com Data Field for the screen. There can be only one Com Data Field per screen. Use FALSE to remove the Com Data Field setting.

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.

Set Com Data Field

Use TRUE to make this field a Com Data Field.

Format

Set_Field_Com_Data_Field (Field Index, Set Com Data Field)

Return Value

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

Example

Script(Set_Field_Com_Data_Field_Test)
Boolean(bSetOK)
Activate(From_Menu)
bSetOK = Set_Field_Com_Data_Field(2, FALSE)
If(bSetOK)
Message("Set_Field_Com_Data_Field worked", 5)
Else
Message("Set_Field_Com_Data_Field 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_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