String Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > String commands > !STR.- String Command >

String Operations

STR.Left

Previous Top Next


MiniRobotLanguage (MRL)

 

STR.Left

Extract Characters from the Left of a String

 

clip0861

 

 

Intention

 

Extracts a specified number of characters from the left side of a source string.

If P2 is greater than the length of P1, the entire string P1 is returned.

 

 

 

 

Syntax

 

 

STR.Left|P1|P2[|P3]

 

 

 

Parameter Explanation

 

P1: The source string from which to extract characters.

P2: The number of characters to take from the left side of the source string.

P3: An optional variable to store the result. If omitted, the result is placed in P1.

 

 

 

 

Example

 

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

' STR.-Sample

'***********************************
$$SRC=HelloWorld

$$NUM=5

STR.Left|$$SRC|$$NUM

MBX.$$SRC

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: