Title Text
Peter Brigham MD
pmbrig at gmail.com
Wed Oct 27 12:35:10 EDT 2010
function toCapsCase str
repeat for each word w in str
put toupper(char 1 of w) & (char 2 to -1 of w) & space after
newStr
end repeat
return char 1 to -2 of newStr
end toCapsCase
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
On Oct 27, 2010, at 12:21 PM, Alex Adams wrote:
> Is there a function that I can use to convert a string to title text
> (the
> first letter of each word is capitalized)? I can’t find one in the
> dictionary. I could write a handler I suppose, but I’m hoping there
> is
> something already available.
>
> Thanks,
> --
> Alex Adams
>
> hawkVision — see the elephant for what it is
> A2 Technology Partners, Inc.
> 831-724-1397
> alex at a2technology.com
> www.a2technology.com
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list