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

question from beginner change string Title by TITLE

 [1/5] from: patrick::scotto::wanadoo::fr at: 21-Oct-2002 19:21

hello, I am a beginner , sorry for this easy question : i want to change this string "Title" by "TITLE" anyone know what rebol fonction use ? myvar: "Title" mynewvar: ???? myvar print mynewvar
thank you

 [2/5] from: patrick:scotto:wanadoo at: 21-Oct-2002 19:38

too easy I found it, uppercase transform this . mynewvar: uppercase myvar and lowercase the contrary sorry for disturb patrick.scotto a écrit:

 [3/5] from: tomc:darkwing:uoregon at: 21-Oct-2002 10:51

>> ? uppercase
USAGE: UPPERCASE string /part range DESCRIPTION: Converts string of characters to uppercase. UPPERCASE is a native value. ARGUMENTS: string -- (Type: any-string) REFINEMENTS: /part -- Limits to a given length or position. range -- (Type: integer any-string)
On Mon, 21 Oct 2002, patrick.scotto wrote:

 [4/5] 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

 [5/5] from: al:bri:xtra at: 22-Oct-2002 9:29

>> help case
Found these words: lowercase native! Converts string of characters to lowercase. uppercase native! Converts string of characters to uppercase.
> From: "patrick.scotto" <[patrick--scotto--wanadoo--fr]> > Date: 2002/10/22 Tue AM 06:21:14 GMT+13:00
<<quoted lines omitted: 13>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
Andrew Martin

  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted