Futurebasic/Language/Reference/line

From Wikibooks, open books for an open world
< Futurebasic‎ | Language‎ | Reference
Jump to: navigation, search

LINE[edit]

Syntax[edit]

lineAddress& = LINE "label"

Description[edit]

This function looks for the indicated label in your program, and returns the memory address of the first program instruction that follows the label. The returned address can be used with the CALL <address> statement (in cpu68K compiles). If you want to use LINE in this way, the label should indicate the beginning of an ENTERPROC procedure.

Note: To get an entry point address for an ENTERPROC procedure which is to be used as a "callback procedure" for a MacOS Toolbox routine, use the PROC function instead.

See Also[edit]

CALL; ENTERPROC; @FN; PROC