<<

Contents

Search

>>

 

RSET

 

 

Instruction

 

 

Syntax:

RSET <Variable> = <String Expression>

 

<Variable>

= <STRING-VARIABLE>

<String Expression>

= <STRING-EXPRESSION>

 

 

Meaning:

Assigns a string value right bound with fix field length.

 

<String Expression> is assigned right-bound to the variable. If the original length of the string in <Variable> was smaller, the characters that exceed the original length are cut off on the left when the new character string is assigned. If the original string was longer, the new string is filled with blanks on the left side.

 

Parameter:

Variable

String variable

String Expression

String

 

Sample:

K$ = "Hello "

P$ = "1234567890"
RSET P$ = K$ + "XXX" /* P$ contains " Hello XXX"

 

See also:

LSET

FIELD