String Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > String commands > !Change case (upper/ lowercase) >

String Operations

VTM. - Variable to Mixedcase

Previous Top Next


MiniRobotLanguage (MRL)

 

VTM. Command

Variable To Mediumcase

 

 

Intention

 

This command can be used to make the string-content of a variable to Medium-Case.

In Mixed-Case the first letter of each word is always  a uppercase letter, all successive letters are lowercase letters.

 

Example:

 

: §§TXT=HaLlO PeTeR

VTM.§§TXT

DBP.§§TXT

' Result is "Hallo Peter"

 

In the second operation mode you can give a target variable. This way the original variable will not be overwritten.

 

: §§TXT=HaLlO PeTeR

VTM.§§TXT|$$TAR

DBP.$$TAR

' Result is "Hallo Peter"

 

 

 

Syntax

 

VTM.[P1][|P2]

 

 

Parameter Explanation

 

P1   - (optional) Source and Target-variable, if omitted,

     TOS is used.

 

P2   - (optional) if given then P1 is source and P2 is destination

 

 

 

Example

 

'*************************************

' VTU./VTL./VTM.- DEMO

'*************************************

: §§TXT=Hallo Peter

VTU.§§TXT

PRT.§§TXT

 

VTL.§§TXT

PRT.§§TXT

 

VTM.§§TXT

PRT.§§TXT

 

' Using two Parameters

: §§TXT=Hallo Peter

 

VTU.§§TXT|§§ERG

PRT.§§TXT -> §§ERG

 

VTL.§§TXT|§§ERG

PRT.§§TXT -> §§ERG

 

VTM.§§TXT|§§ERG

PRT.§§TXT -> §§ERG

 

MBX.!

END.

 

 

 

Remarks

 

-

 

 

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

    VRD. - Variable-Remove-Doubles

    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