Title Case

Klaus major-k klaus at major-k.de
Sat Apr 21 09:58:34 EDT 2018


Hi Richmond,

> Am 21.04.2018 um 15:52 schrieb Richmond Mathewson via use-livecode <use-livecode at 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
klaus at major-k.de





More information about the use-livecode mailing list