Call a function: Difference between revisions
m
→{{header|FutureBasic}}: Minor edits to descriptions
(FutureBasic solution added) |
m (→{{header|FutureBasic}}: Minor edits to descriptions) |
||
Line 2,476:
</syntaxhighlight>
Fixed arguments - args passed by value
<syntaxhighlight lang="futurebasic">
void local fn MyFunction( arg1 as long, arg2 as long, arg3 as long )
Line 2,487:
</syntaxhighlight>
Variable arguments - args passed by value
<syntaxhighlight lang="futurebasic">
void local fn MyFunction( count as long, ... )
Line 2,507:
</syntaxhighlight>
Return value - arg passed by value
<syntaxhighlight lang="futurebasic">
local fn MultiplyByThree( value as long ) as long
Line 2,517:
</syntaxhighlight>
<syntaxhighlight lang="futurebasic">
void local fn MultiplyByThree( value as ^long )
|