Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 631
  • Last Modified:

form.keypreview to uppercase a-z chars

Hi,
I have a textbox on a form I would like uppercased as its being typed. I tried 2 solutions, the first one being obvious - put This.Value=upper(This.Value) inside the interactiveChange event of the textbox. This didn't work because it results in the cursor being positioned at the beginning of the textbox.
So now I'm using a form's Keypress property to uppercase keystrokes thinking that foxpro will then pass the keystroke event on to the object in the form that generated the keypress, but that doesn't seem to be happening.
Any suggestions?
Thanks!
Andre
0
andremara
Asked:
andremara
1 Solution
 
jrbbldrCommented:
Your question was already answered in the other VFP forum where you posted.

To repeat that individual's answer....
     set the textbox's Format property to ! (that's an exclamation mark)

Good Luck
0
 
Olaf DoschkeSoftware DeveloperCommented:
.T.
0
 
andremaraAuthor Commented:
Thanks! I did find this in the vfp help after a little digging, and I appreciate your posting over here - I'll have to get a little more familiar with the EE interface.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now