next up previous contents
Next: match Up: Methods Previous: toLowerCase   Contents


toUpperCase

Description
Places the text in a String object in uppercase characters.


Syntax

  1. StringObj.toUpperCase()
  2. "String Literal".toUpperCase()


Parameters

None


Returns

It returns a copy of the String object, with all of the lowercase characters converted to uppercase. The original value is unchanged. It has no effect on nonalphabetic characters.


Example

s = "Hello World";
r = s.toUpperCase();
trace(r);
//output: HELLO WORLD




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.