$* Statement

The $* statement allows a comment to be embedded directly into the program’s object code at compilation.

Format

$* " text "

$* ' text '

$* \ text \

Parameter(s)

text

The comment text, enclosed within string delimiters.

Description

The $* statement directs the compiler to write the quoted text directly into the object code of the program. These comments are generally used to place copyright information or version numbers into source code before it is distributed.

Examples

To place the string "HELLO" directly into the object code of a program, the code might read:

$* "HELLO"

In the next application, the $* statement is used to place a copyright into an adventure game:

$* " DRAGONS -- Version 1.1 "

$* " Copyright 1989 N. West, NBM Inc. "

EQUATE TRUE TO 1, FALSE TO 0,

   BEL TO CHAR(7)

.

.

.

See Also

Statement and Function Reference