basic.str

Function/BASIC Program, Releases: AP and R83

Generates string of characters.

Syntax

str(string.expression, num.expression)

Description

repeates a 'string.expression' the number of times specified in 'num.expression'

See the 'system' function for retrieving the current device width to substitute as the numeric expression.

Example

print str('*',79)

This prints 79 '*' (asterisks) at the current cursor (or print head)
position.

print str('=',system(2))

This prints a string of '=' (equal signs). The number of
'=''s that it prints is determined by system(2), which contains
the current device output width most recently designated with a
'term' command.

See Also

Command Name Type Description
basic.space Function Generates string of spaces.
tcl.term Verb: Access Displays or changes current terminal or printer characteristics.
basic.statements Definition Definition of statements and functions.
basic.num.expression Definition An expression which evaluates to a number.
basic.functions Definition elements in FlashBASIC or Pick/BASIC language expressions, returning a single value in place, as a function of the arguments. A function can be used anywhere a variable or expression is used.
basic.system Function Displays status of system-controlled variables.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.