Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper() function
Message
 
 
To
09/07/2003 04:08:08
Samir Chheda
Remittag Software Pvt. Ltd.
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00808359
Message ID:
00808429
Views:
35
Hi Samir,

Try
? myProper("i am a boy")
FUNCTION myProper(tcText)
LOCAL lcNewText
lcNewText = tcText
IF ISALPHA(tcText)
	lcNewText = UPPER(LEFT(tcText,1)) + SUBSTR(tcText,2)
ENDIF
RETURN lcNewText
>Hi,
>
>I am making a small notepad application and I am allowing the user to change the Case of the text selected by him. The problem with Proper() function is that it changes all the first alphabets of the string to Capital. For example Proper() changes "i am a boy" to "I Am A Boy", which I dont want. It shouls return "I am a boy"
>
>Has anybody written any procedure to make only those alphabets capital which come after a period(.) ???
>
>TIA
>
>Regards,
>Samir.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform