<<

Contents

Search

>>

 

MSTRIP

 

 

Instruction

 

 

Syntax:

MSTRIP(<String Variable>,<Position>,<Count>)

 

<String Variable>

= <STRING-VARIABLE>

<Position>

= <NUM-EXPRESSION>

<Count>

= <NUM-EXPRESSION>

 

 

Meaning:

Removes characters in the mid of a string.

 

MSTRIP removes <Count> characters in <String Variable> from the position <Position>.

 

If <Position> < 1 or <Position> greater than the length of <String Variable> or <Count> = 0, the content of <String Variable> is not changed.

 

Parameter:

String Variable

String variable

Position

Position in <String Variable>

Count

Number of characters to be deleted

 

Sample:

S$ = "Window"

MSTRIP(S$,2,3)

/* S$ contains "Wow"

 

See also:

MSTRIP$

LSTRIP

LSTRIP$

RSTRIP

RSTRIP$

LEFT$

RIGHT$