String Operations

<< Click to Display Table of Contents >>

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

String Operations

VTL. - Variable to Lowercase

Previous Top Next


MiniRobotLanguage (MRL)

 

VTL. Command

Variable To Lowercase

 

 

Intention

 

This Command can be used to make the string-content of a variable to lowercase.

 

Example:

 

: §§TXT=HaLlO PeTeR

VTL.§§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

VTL.§§TXT|$$TAR

DBP.$$TAR

' Result is "hallo peter"

 

 

 

Syntax

 

VTL.[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

•     VRD. - Variable-Remove-Doubles

•     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