Converting to title case

Andre Garzia andre at andregarzia.com
Wed Aug 25 14:44:01 EDT 2010


jim,

why not this:

put fld "list" into tContent

repeat for each word tName in tContent
  replace tName with (toUpper(char 1 of tName) & toLower(char 2 to -1 of
tName))
end repeat

This will capitalize all your names right?

-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list