Call a function: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4,401:
 
// The parameter list is flexible, allowing any amount of variable to be passed in.
// These can be accessed with the keyword `the paramsparameterList`
// The specified parameters only limits to named parameters
// The first item of `the params` is the function name
put TwoArgFn("variable", (3, 4), "hello") into _
 
function TwoArgFn arg1, arg2
put "2 argument function: arg1 = " & arg1 & "; arg2 = " & arg2
put "Parameters = " & the paramsparameterList
end TwoArgFn</lang>