<<

Contents

Search

>>

 

MSTRIP$

 

 

Function

 

 

Syntax:

MSTRIP$(<String Expression>,<Position>,<Count>)

 

<String Expression>

= <STRING-EXPRESSION>

<Position>

= <NUM-EXPRESSION>

<Count>

= <NUM-EXPRESSION>

 

 

Meaning:

Removes characters in the mid of a string.

 

MSTRIP$ removes <Count> characters in <String Expression> from position <Position> and returns the changed string as result.

 

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

 

Parameter:

String Expression

String expression

Position

Position in <String Expression>

Count

Number of characters to be deleted

 

Sample:

S$ = MSTRIP$("Window",2,3)

/* S$ contains "Wow"

 

See also:

MSTRIP

LSTRIP

LSTRIP$

RSTRIP

RSTRIP$

LEFT$

RIGHT$