Chapter 3 DynaScript Predefined Objects
The Function
object
has this property:
Function.length
This property is read-only.
Returns the number of parameters required by the Function.
Integer.
This example returns the number of parameters required by the function:
<!--SCRIPT
myFunc = new Function( "x","y", "return x * y;" );
document.WriteLn( "The function myFunc takes " + myFunc.length + " parameters." );
document.WriteLn( myFunc(5, 6) );
-->
Copyright © 1999 Sybase, Inc. All rights reserved. |