basic.,

Relational Operator/BASIC Program, Releases: AP and R83

Used to separate parameters in functions and to print tabstops with the 'print' and 'crt' statements.

Syntax

dim.array.variable(col.exp , row.exp) dynamic.array.variable<ac.exp , vc.exp, sc.exp> function(argument1 , argument2 , ...) call subroutine.name(argument1 , argument2 , ...) crt/print string.exp , string.exp , ...

Description

has several purposes:

1) To separate subscript references within multi-dimensional arrays.

2) To separate 'ac.exp', 'vc.exp', and 'sc.exp' in dynamic array references.

3) To delimit arguments within functions.

4) To separate 'passed' arguments in a 'call' statement.

5) When used with the 'crt' or 'print' statement, to 'tab' to the next tab stop. Tabstops are established every 18 columnar positions.

Example

if screen.array(13,12) ...

The comma delimits the 'row' and 'column' arguments in a
two-dimensional array reference.

customer.item<17,-1> = invoice.pointer

The comma delimits the 'ac.exp' (17) and the 'vc.exp' (-1)
in a dynamic array reference.

cnt = dcount(string,char(253))

The comma delimits the arguments in the 'dcount' function.

call display.lines(cust.item,balance,inv.list)

The comma separates the arguments in the list being passed to the subroutine.

crt 'hello' , 'there'

This prints 'hello', followed by 13 spaces and 'there'.
This is like a 'tabstop', and moves to the next multiple of 18 on the
print or display line.

See Also

Command Name Type Description
basic.crt Statement Outputs expression to crt.
basic.operators Relational Operator Operators * ! & = # - + / ^ < > \ [ ] ( )
basic.print Statement Outputs expression to printer or crt.
basic.print.on Statement Directs output to specific report.

User Comments

What do you think?

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

Login to leave your comments.