Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: question from beginner change string Title by TITLE

From: greggirwin:mindspring at: 21-Oct-2002 14:15

Hi Patrick, Be aware that UPPERCASE changes the value you give it, rather than just providing a modified copy of the original. I.e. you are actually modifying myvar.
>> myvar: "Title"
== "Title"
>> mynwevar: uppercase myvar
== "TITLE"
>> myvar
== "TITLE" If you want to leave the original unchanges, COPY it before applying UPPERCASE.
>> myvar: "Title"
== "Title"
>> mynewvar: uppercase copy myvar
== "TITLE"
>> myvar
== "Title" --Gregg