Rset Command

Purpose

Moves a string expression, right justified, to a string.

Syntax

Rset a$=b$

a$:svar
b$:sexp

Description

Rset a$=b$ will, first of all, replace all characters in a$ with spaces. Next, b$ is moved into a$ right justified. If b$ contains more characters than a$, then only as many characters as there are "places" for in a$ are moved.

Example

OpenW # 1

Local a$ = String$(15, "-")

Local b$ = "Hello GFA"

Print a$``Len(a$)       //prints   --------------- 15

Print b$``Len(b$)       //prints   Hello GFA 9

Rset a$ = b$

Print a$``Len(a$)       //prints   Hello GFA 15

See Also

Lset, Mid

{Created by Sjouke Hamstra; Last updated: 22/10/2014 by James Gaite}