Microsoft® JScript
toUpperCase Method

See Also

Language Reference 

Description

Places the text in a String object in uppercase characters.

Syntax

strVariable.toUpperCase( ) "String Literal".toUpperCase( )

Remarks

The toUpperCase method has no effect on non-alphabetic characters.

The following example demonstrates the effects of the toUpperCase method:


var strVariable = "This is a STRING object"
strVariable.toUpperCase()

The value of strVariable after the last statement is: THIS IS A STRING OBJECT.


© 1996 by Microsoft Corporation.

Casa de Bender