<<

Contents

Search

>>

 

LSET

 

 

Instruction

 

 

Syntax:

LSET <Variable> = <String Expression>

 

<Variable>

= <STRING-VARIABLE>

<String Expression>

= <STRING-EXPRESSION>

 

 

Meaning:

Assigns a string value left bound with fix field length.

 

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

 

Parameter:

Variable

String variable

String Expression

String

 

Sample:

K$ = "Hello "

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

 

See also:

RSET

FIELD