Kai
Code: Select all
function ProperCase pString
local caps, tmp
--
put True into caps
repeat for each char C in pString
if caps then
put toUpper( C ) after tmp
else
put toLower( C ) after tmp
end if
put ( C is in " ,-." ) into caps # stop chars go here
end repeat
return tmp
end ProperCase