Get_Field_Data_ID

Gets the data ID for the specified field. A blank string means no Data ID is set for the field or the field index is invalid. A field may have more than one data ID. Use Get_Num_Field_Data_IDs to determine the number of data IDs for a field. This action is only valid when using IBM 5250 or 5555 emulation.

Parameters

Field Index

The index of the field.

Data ID Index

The index of the Data ID.

Format

Get_Field_Data_ID (Field Index, Data ID Index)

Return Value

Returns the field’s Data ID.

Example

Script( Get_Field_Data_ID_Test )
String( strDataID )
Boolean( bSetOK )
Number( numDataIDs )
Number( counter )
Activate( From_Menu )
bSetOK = Set_Field_Data_ID( 0, "N" )
numDataIDs = Get_Num_Field_Data_IDs( 0 )
counter = 0
While( Number_Less_Than( counter, numDataIDs ) )
strDataID = Get_Field_Data_ID( 0, counter )
Ask_OK( strDataID, "Data ID for Field 0" )
counter = Number_Plus( counter, 1 )
End_While
Return

See Also

Get_Field_Prefix_Scan_Data, Get_Num_Field_Data_IDs, Get_Num_Field_Symbology_IDs, Get_Field_Com_Data_Field, Get_Field_Symbology_ID, Get_Num_Fields, Set_Field_Symbology_ID, 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

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal