Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

Position

The position parameter in a FORMAT statement is the screen coordinates, the printer line position, or the record position where the field is to be output. The @ sign and the parentheses are part of the syntax for this parameter.

For screen formats, the left-most position is 0 and the top row is also 0. The first position on a printer line is also 0, and the first position of a data record is 0.

For screen formats, you must specify the column first, followed by a comma and the row number.

Example:

1000 FORMAT CUSTNUM$,@(10,5)
.
PRINT (0,1000)
In this example, the variable named CUSTNUM$ will be displayed starting at column 10, row 5.

Note: This example could also be written without a FORMAT statement, as follows:

PRINT (0) CUSTNUM$,@(10,5)