] ToolboxProcName[( arg1, arg2... )]
This statement calls a Carbon Toolbox procedure. A Toolbox procedure (as opposed to a Toolbox function) performs an operation without returning a value. To execute a Toolbox function, use the
fn statement instead.
ToolBoxProcName must be previously defined in a
If the procedure requires parameters, include them in a list surrounded by parentheses. (If the procedure does not take any parameters, then the parentheses are optional.)
dim as Rect myRect
SetRect( myRect, 10, 10, 200, 150 )
call SetRect( myRect, 10, 10, 200, 150 )
FutureBasic reserves memory locations 8234650 through 8234657 (for example) for the "
myRect" structure. When
SetRect is executed, FutureBasic passes 8234650 to the Toolbox as the first parameter.