Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upper case first letter entered in a textbox
Message
De
23/10/2001 17:38:52
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Upper case first letter entered in a textbox
Divers
Thread ID:
00572347
Message ID:
00572347
Vues:
65
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform