Futurebasic/Language/Reference/fn toolbox

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

FN <toolbox> function[edit | edit source]

FN <toolbox>[edit | edit source]

Function[edit | edit source]

✔ Appearance ✔ Standard ✔ Console

Syntax[edit | edit source]

result = FN ToolboxFunctionName [modifiers] ¬
   [([{#addrExpr1&|arg1}[,{#addrExpr2&|arg2}...]])]

Description[edit | edit source]

This function executes a Toolbox function as defined in Inside Macintosh. A Toolbox function (as opposed to a Toolbox procedure) returns a value.

ToolboxFunctionName must be the name of a Macintosh Toolbox function. FB recognizes the names of hundreds of Toolbox functions and procedures; advanced programmers can also use the TOOLBOX statement and the TBALIAS statement to add new Toolbox function/procedure names.

The use of the modifiers, addrExpr& and arg parameters is identical to their use in the CALL <toolbox> statement. See the description of the CALL statement for more information.

See Also[edit | edit source]

CALL