Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert UpperCase to Sentence?
Message
From
20/11/2012 06:36:36
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01557608
Message ID:
01557629
Views:
62
>Hi everyone!
>
>Ok, I'm SURE someone has done this already but I couldn't find anything on UT.
>
>I need to be able to take a block of text that is all upper case and convert it to normal sentence case. For example:
>
>
>I NEED TO EAT SOMETHING SOON. IF I DON'T THEN I WILL PROBABLY PASS OUT. CAN YOU TELL IT'S LATE? MAYBE I CAN STOP AT MACDONALDS.
>
>
>to:
>
>
>I need to eat something soon. If I don't then I will probably pass out. Can you tell it's late? Maybe I can stop at MacDonalds.
>
>
>Thanks!

Hi,

Take Rick's code as a starter, I would dump everything with minimal Proper() cases into a text file to be editted manualy into an edit box. The number of exceptions, as pointed out by Al Domain are so numerous you will end up spending more time to write a full-proof function than to just simply edit my hand.
A fine class to assist you in making the final correct layout would be the HTMLEdit.vcx which to be downloaded at :http://www.atoutfox.org/articles.asp?ACTION=FCONSULTER&ID=0000000027
Although the comments are in French it is so easy to use you will not be bothered with that. And if so please report back, there are lots of bilingual visitors on this site.

Regards,

Koen
Previous
Reply
Map
View

Click here to load this message in the networking platform