Hi Richmond,

> Am 21.04.2018 um 15:52 schrieb Richmond Mathewson via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> Just been playing with this and found that this causes problems:
> 
> put "vanish" into rWORD
> put char 1 of rWORD into rC
> toUpper(rC)
> 
> the toUpper(rC) throws a "bluey"

toupper() is a FUNCTION, so you have to do something with its return value!
This does NOT throw a "bluey":
...
put "vanish" into rWORD
put char 1 of rWORD into rC
PUT toUpper(rC)
## or 
## ANSWER toupper(rC)
...
-> V 
8-)

> toUpper works with a string expressed "as itself" in double quotes, but does 
> not
> seem to like a stringVariable. which is a "nuisance".

Now who or what is a nuisance? :-D

> Richmond.
> 
> On 21/4/2018 6:35 am, Sannyasin Brahmanathaswami via use-livecode wrote:
>> What to the simplest way to  "sentence case"
>> a create a sentence title
>> in use toUpper to convert to
>> A Create A Sentence Titleā€¦
>> 
>> BR

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


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

Reply via email to