beautypg.com

String – Argox PA-20 Basic Programming Manual User Manual

Page 29

background image

PT-Basic Programming Manual Ver. 1.00

28/143

STRING$

Purpose: To return a string containing the specified number of the

requested character.

Syntax: A$ = STRING$(N%, J%)

A$ = STRING$(N%, X$)

Example:

PRINT STRING$(10, 45) „ ----------
PRINT STRING$(3, "89") „ 888

Description: A$ is a string variable to be assigned to the result.

N% is numeric expression.

J% is numeric expression in the range of 0 to 255, indicating

the ASCII code of a character.

X$ may be a string variable or string constant.