basic.:

Relational Operator/BASIC Program, Releases: AP and R83

Concatenation operator.

Syntax

expression : expression crt/print expression {:} input @(x,y):variable ...

Description

concatenates strings in an assignment statement or, when the ':' appears at the end of a 'print' or 'crt' expression, suppresses the automatic carriage return/linefeed combination, thus holding the current print/display position. It is also used as a token within the 'input @' statement.

Example

z = 'Amount due = ':amount
print z
Variable 'z' is assigned the result of the string expression,
'Amount due = ' concatenated to the value of the variable
'amount'

print 'Enter command ':
The string 'Enter command ' is printed and the cursor is left at the
end of the string.

See Also

Command Name Type Description
basic.print Statement Outputs expression to printer or crt.
basic.special.characters Reserved Character Reserved characters and their functions.
basic.crt Statement Outputs expression to crt.
basic.cat Relational Operator Concatenates string expressions.
basic.assignment Definition Assigns value to variable.
string.expressions Definition A string of characters.
basic.@.functions Function Special cursor addressing functions.
basic.input@ Statement Stops program to accept input.

User Comments

What do you think?

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

Login to leave your comments.