Function to Upper and Lower Case sentences

dunbarx at aol.com dunbarx at aol.com
Wed Dec 21 16:00:42 EST 2011


Try something like this:



on mouseUp
   get fld "yourField"
   put toLower(it) into it
   repeat for each word tWord in it
      put toUpper(char 1 of tWord) into char 1 of tWord
   end repeat
   put it into fld "yourField"
end mouseUp





-----Original Message-----
From: Sivakatirswami <katir at hindu.org>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Dec 21, 2011 10:45 am
Subject: Function to Upper and Lower Case sentences


I have a need to take all caps input  and

1) Lower case all but first letter of sentences

2) Upper case words in a small dictionary I will provide to the function.

As anyone cooked up something like this already... if I just had 1) can 
manage 2)

Happy Holidays!

Om Shanti
Sivakatirswami

Kauai Aadheenam

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list