Chapter 3 DynaScript Predefined Objects
The Object
object
has these methods:
Object.toString( )
Returns the value of the object as a string.
String.
To display the value of the myObj object:
<!--SCRIPT
myObj = new Object( "my object" );
document.WriteLn( myObj.toString() );
-->
Object.valueOf( )
Extracts the value of the object.
Integer.
To return the value of the myObj object:
<!--SCRIPT
myObj = new Object(null);
document.WriteLn( typeof( myObj ) );
document.WriteLn( "value = " + myObj.valueOf() );
-->
Copyright © 1999 Sybase, Inc. All rights reserved. |