Futurebasic/Language/Reference/line

From Wikibooks, open books for an open world
Jump to navigation Jump to search

LINE[edit | edit source]

Syntax[edit | edit source]

lineAddress& = LINE "label"

Description[edit | edit source]

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 | edit source]

CALL; ENTERPROC; @FN; PROC