Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript String Object toUpperCase Method

Places the text in a String object in uppercase characters.

Syntax: JScript String Object toUpperCase Method

strVariable.toUpperCase( )

"String Literal".toUpperCase( )

Arguments: JScript String Object toUpperCase Method

strVariable

The name of a String object.

Remarks: JScript String Object toUpperCase Method

The toUpperCase method has no effect on nonalphabetic characters.

The following example demonstrates the effects of the toUpperCase method:

var strVariable = "This is a STRING object";

strVariable = strVariable.toUpperCase( );

The value of strVariable after the last statement is:

THIS IS A STRING OBJECT

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.