Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting In Title Case?
Message
 
To
04/06/1998 10:21:39
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00104535
Message ID:
00105006
Views:
56
>What I would like is to have all (or most ) of my TextBoxes and GridColumns to display and store data in "Titlecase" (1st letter of each word capitalized) regardless of how the user enters the data from the keyboard. For example I have a field for LastName, in the Format section of the table designer I use "!" and all the LastName's appear in UPPERCASE. I would like to do the same for other fields but instead of using UPPERCASE I want to use "Titlecase".
>
>TIA
>--lincoln

Lincoln, sounds like you should put the code into the VALID method: this.value = proper(this.value). It wouldn't show as users type in the data, but as soon as they click/tab/etc. out of the textbox the valid() would fire and the code would be updated.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform