<< Click to Display Table of Contents >> Navigation: 3. Script Language > String commands > !Delimited Strings > String Operations |
MiniRobotLanguage (MRL)
VRD. Command
Variable Remove Doubles
Intention
This command can be used to make strings have only single delimiters.
The command has two modes: Text-mode and Binary mode.
In Text mode ASCII 32 and ASC 9 (TAB's and SPACES) are processed to single Spaces in one Run. In text-mode, the string is not allowed to contain ASCII(0).
In Binary Modes all characters are allowed.
Syntax
VRD.[P1][|P2]
Parameter Explanation
P1 - is Source and Target-variable
P2 - is obsolete for Text-Trimming.
In that case it just trims away all spaces left and right.
If Parameter 2 is "all" the all characters from CHR$(0 to 32)
will be trimmed.
Example
''*************************************
' VRD/VBT/SBD - DEMO
'*************************************
VAR.§§LIN=12 345 6789
' We first remove the double delimiters in Textmode
VRD.§§LIN
PRT.>§§LIN<
VAR.§§LIN=1234aa4567bb34567
' We now remove double delimiters in binary Mode
VRD.§§LIN|abc
PRT.>§§LIN<
MBX.!
END.
Remarks
Often used together with SBD. or SBM. or FEM.
Limitations:
-
See also:
• 1.5.2 Working with Text-Strings
• VBT. - Variable-Both-sides-Trim
• VTU. - Variable to Uppercase
• VTL. - Variable to Lowercase
• VTM. - Variable to Mediumcase
• VAR. - Variable Set Value/Clear
• IVS. / NVS. - If-Variable-String
• SBD. - String between Delimiter
• SBM. - String between Delimiter-Multiple