<< Click to Display Table of Contents >> Navigation: 3. Script Language > String commands > !DIC.-Delimited Item Commands > DIC.Get_Field_Index |
MiniRobotLanguage (MRL)
DIC.Get_Field_Index
Convert Description of delimited Field to numbers.
Intention
Assume you have a XCoordinate from A Spreadsheet like this: "AA".
Now you want to convert it to its numeric representation which in this case would be 27.
VAR.$$LIN=AA
' Now we call the command
DIC.gfi|$$LIN|$$RES
' And Debug-Print the Result 27
DBP.$$RES
ENR.
Syntax
DIC.gfi|P1[|P2]
DIC.Get_Field_Index|P1[|P2]
Parameter Explanation
P1 - Field Index can be a number like 1,2,3 (makes no sense anyway) or a Letter like "A", "AB". Letters must be enclosed in " ".
P2 - (optional) Variable for Result. If omitted result is placed on TOS.
Example
'***********************************
'
'***********************************
Remarks
-
Limitations:
-
See also:
•1.5.2 Working with Text-Strings
•VAR. - Variable Set Value/Clear
•IVS. / NVS. - If-Variable-String
•SBD. - String between Delimiter
•SBM. - String between Delimiter-Multiple