PROGRAM Statement

Identifies a DataBasic module as a program.

Syntax

PROGRAM programName

Syntax Elements

programName
Specifies the name of the program. This name should be the same as the item-id, but is ignored when the program is compiled.

It is recommended that programName should be enclosed in quotes; if this is not done, it must obey the rules for identifiers.

Description

The PROGRAM statement is optional. If a module contains neither a SUBROUTINE statement nor a PROGRAM statement, it is regarded as a program.

If used, the PROGRAM statement must be the first statement in a program.

See Also

SUBROUTINE statement.