String Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > String commands > !Delimited Strings >

String Operations

VRD. -  Variable-Remove-Doubles

Previous Top Next


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

    VLT - Variable-Left-Trim

    VRT. - Variable-Right-Trim

    VTU. - Variable to Uppercase

    VTL. - Variable to Lowercase

    VTM. - Variable to Mediumcase

    GFS. - Get-Filtered-String

    VAR. - Variable Set Value/Clear

    IVS. / NVS. - If-Variable-String

    ! STR. - String Command

    GSS. - GetSplitString

    GES. - Get-Extracted-String

    SBD. - String between Delimiter

    SBM. - String between Delimiter-Multiple

    FEM. - For Each Member

    LEN. - Length-of-String

    RPL. - RePLace in String