Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upper case first letter entered in a textbox
Message
From
23/10/2001 17:38:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Upper case first letter entered in a textbox
Miscellaneous
Thread ID:
00572347
Message ID:
00572347
Views:
66
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
Next
Reply
Map
View

Click here to load this message in the networking platform