String Operations

<< Click to Display Table of Contents >>

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

String Operations

STR.ClipLeft / STR.cll

Previous Top Next


MiniRobotLanguage (MRL)

 

STR.ClipLeft

Remove Characters from the Left Side of a String

 

clip0837

 

Intention

 

This command is used to remove a specified number of characters from the left side of a given string.

The result will also be put in P1 if P3 is omitted.

If P2 is less than one, the entire string is returned.

If P2 is negative, or if the start position is less than one, the return value is undefined.

 

 

Syntax

 

 

STR.ClipLeft|P1|P2[|P3]

 

 

Parameter Explanation

 

P1 - (Mainstring, Text) Variable with the source string.

P2 - (Input, Numeric) Number of characters to remove from the left side of the source string.

  If P2 is less than one, the entire string is returned.

  If P2 is negative, or if the start position is less than one, the return value is undefined.

P3 - (Output, Text) Optional variable that will contain the result. The result will also be put in P1 if P3 is omitted.

 

 

Example

 

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

' IRS.-Sample

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

' $$RES will contain 'lo World'

' Remove 3 characters from the left side of the string

$$SRC=Hello World

$$CNT=3

STR.ClipLeft|$$SRC|$$CNT|$$RES  

 

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: