Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting In Title Case?
Message
 
À
04/06/1998 10:21:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00104535
Message ID:
00105006
Vues:
57
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform