beautypg.com

Commands for string processing, Instr, Left – Argox PA-20 Basic Programming Manual User Manual

Page 108: Right, Trim_left, Trim_right, Lcase, Ucase, Valr

background image

PT-Basic Programming Manual Ver. 1.00

107/143

A4.

Commands for string processing

Command

description

LEN

To return the length of a string.

INSTR

To search if one string exists inside antoher one.

LEFT$

To retrieve a given number of characters from the

left side of the target string.

MID$

To retrieve a given number of characters from

anywhere of the target string.

RIGHT$

To retrieve a given number of characters from the

right side of the target string.

TRIM_LEFT$

To return a copy of a string with leading blank

spaces stripped.

TRIM_RIGHT$

To return a copy of a string with trailing blank

spaces stripped.

ASC

To return the decimal value for the ASCII code

for the first character of a given string.

CHR$

To return the character for a given ASCII value.

HEX$

To return a string that represents the hexadecimal

value (base 16) of the decimal argument.

OCT$

To return a string that represents the octal value

(base 8) of the decimal argument.

LCASE$

To return a copy of a string in which all uppercase

letters will be converted to lowercase letters.

UCASE$

To return a copy of a string in which all lowercase

letters will be converted to uppercase letters.

STR$

To convert a numeric expression to a string.

VAL

To return the numeric value of a string expression

in interger form.

VALR

To convert a string expression to a real number.

STRING$

To return a string containing the specified number

of the requested character.