Chapter 3 DynaScript Predefined Objects
The Boolean
object
has these methods:
Boolean.toString( )
Returns the value of the Boolean as a string.
String.
This example returns the value of the Boolean as a string:
<!--SCRIPT
myBool = new Boolean(true);
document.WriteLn(myBool.toString() );
-->
Boolean.valueOf( )
Returns the value of the Boolean object.
Boolean.
This example returns the value of the Boolean object:
<!--SCRIPT
myBool = new Boolean(true);
document.WriteLn(myBool.valueOf() );
-->
Copyright © 1999 Sybase, Inc. All rights reserved. |
![]() |