Set_Field_Symbology_ID

Sets the Symbology ID for a field. A field may have more than one Symbology ID. If the field already has a Symbology ID, this command will add another Symbology ID. Use Symbology ID ANY to clear the symbologies, which will then allow you to use All Symbologies. ANY causes Get_Num_Field_Symbology_IDs () to return zero, and Get_Field_Symbology_ID () to return an empty string.

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

Scanner symbology values can be found in Symbologies and Values.

Parameters

Field Index

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

Symbology ID

The name of the symbology.

And-Or with Data ID

Indicates whether the field data must match the Data ID and/or Symbology ID.

Format

Set_Field_Symbology_ID (Field Index, "Symbology ID", And-Or with Data ID)

Return Value

If And-Or with Data ID is TRUE, then the field data must match both the Data ID and the Symbology ID. If And-Or is FALSE, then the field data must match either the Data ID or the Symbology ID.

Example

Script( Set_Field_Symbology_ID_Test )
Boolean( bSetOK )
Activate( From_Menu )
bSetOK = Set_Field_Symbology_ID( 2, "UPCA", FALSE )
If( bSetOK )
Message( "Set_Field_Symbology_ID worked", 5 )
Else
Message( "Set_Field_Symbology_ID failed", 5 )
End_If
Return

See Also

Set_Field_Data_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