
|
<<
Index
>>
|
FutureBasic 5
|
call <toolbox>
|
|
statement
|
|
Syntax:
[
call
] ToolboxProcName[( arg1, arg2... )]
Description:
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 toolbox
statement.
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.)
Example:
dim as Rect myRect
SetRect( myRect, 10, 10, 200, 150 )
or
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.
See Also:
fn <toolbox>