Help with toUpperCase

Results 1 to 2 of 2

Thread: Help with toUpperCase

  1. #1
    Steve M Guest

    Default Help with toUpperCase

    I&#039m passing a literal to a function trying to uppercase it, but it becomes literally:<BR>"function toUpperCase() {<BR> [native code]<BR>}" <BR>instead of the upper case text. What am I doing wrong?<BR><BR>//for example, (IE5.1)<BR>uCase("hello");<BR>function uCase(str)<BR>{<BR> alert(str.toUpperCase);<BR>}<BR>

  2. #2
    John C. Guest

    Default RE: Help with toUpperCase

    Try changing:<BR><BR>str.toUpperCase to str.toUpperCase()<BR><BR>I don&#039t know if the parenthesis make a big deal in JScript, but they matter a lot in C.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts