String Operations

<< Click to Display Table of Contents >>

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

String Operations

STR.ClipRight / STR.Clr

Previous Top Next


MiniRobotLanguage (MRL)

 

STR.ClipRight

Remove Characters from the Right End of a String

 

 

Intention

 

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

 

 

 

 

Syntax

 

 

STR.ClipRight|P1|P2[|P3]

 

 

Parameter Explanation

 

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

P2 - (Input, Numeric) Number of characters to remove from the right end of the string.

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

 If P2 is negative, the return value is undefined.

P3 - (Output, Text) Optional variable that will contain the result. If omitted, the result will be placed back in P1.

 

 

 

 

Example

 

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

' IRS.-Sample

'***********************************
' Remove 5 characters from the right end of the string
' $$RES will contain 'Hello '

$$SRC=Hello World

$$CNT=5

STR.ClipRight|$$SRC|$$CNT|$$RES  

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: