Gets the symbology ID of the specified field.
There may be more than one symbology ID in a field; pass in the zero-based Symbology Index. For example, Symbology Index 0 gets the first symbology ID. The return ID ANY means Use All Symbologies. An empty or blank return ID means either the filed has no symbology IDs or the field index is not valid.Use Get_Num_Field_Symbology_Ids to determine the number of symbologies for a field. 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 index of the field. |
Symbology Index |
The index of the symbology. |
Format
Get_Field_Symbology_ID (Field Index, Symbology Index)
Return Value
Returns the field symbology ID.
Example
Script(Get_Field_Symbology_ID_Test)
String(strSymbologyID)
Boolean(ok)
Number(numSymbologies)
Number(counter)
Activate(From_Menu)
Comment: Set some symbologies for field 0, then display them.
ok = Set_Field_Symbology_ID(0, "UPCE0", FALSE)
ok = Set_Field_Symbology_ID(0, "CODE 39", FALSE)
ok = Set_Field_Symbology_ID(0, "EAN8", FALSE)
numSymbologies = Get_Num_Field_Symbology_IDs(0)
counter = 0
While(Number_Less_Than(counter, numSymbologies))
strSymbologyID = Get_Field_Symbology_ID(0, counter)
Ask_OK(strSymbologyID, "Symbology for Field 0")
counter = Number_Plus(counter, 1)
End_While
Return
See Also
Set_Field_Symbology_ID, Get_Field_Symbology_Operator, Get_Field_Data_IDGet_Num_Field_Symbology_IDs, Get_Num_Fields
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other