Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upper case first letter entered in a textbox
Message
 
 
À
23/10/2001 17:38:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00572347
Message ID:
00572352
Vues:
33
This message has been marked as the solution to the initial question of the thread.
Hi James,

You can do it just using InputMask Property
InputMask = "!XXXXXXXXXX"
>Hi All,
>
>This seems like it should be elementary age simple, but I can't seem to find the right command. I want to Uppercase the first letter entered in a textbox for a data enter screen. I put this code in the InteractiveChange method:
>
>If Len(Trim(This.Value)) = 1 and ThisForm.AutoUpper = .T.
> This.Value = Upper(This.Value)
>EndIf
>
>The problem is, I think, when FoxPro does the replacement the cursor is moved back to the beginning of the textbox so subsequently entered text comes out BEFORE the first letter. So the value of my name "James" would appear like this in the textbox "amesJ".
>
>I'm looking for a command that will let me move the cursor to the end of the text so that the entered data will appear correctly. Or, a different, better approach to the whole thing.
>
>Thanks in advance for all you kindly help.
>
>Aloha,
>
>James
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform