Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Characters
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00101034
Message ID:
00101139
Views:
18
Bob,

In the KeyPress of the Form, I'm assuming you have something like this:

If nKeyCode = -5 && F6
This.txtBox.SetFocus()
EndIf

This code would give the results you describe. Adding a NoDefault inside the if statement will throw the keystroke away so nothing gets passed to the txtBox. It would then look like this:

If nKeyCode = -5 && F6
This.txtBox.SetFocus()
NoDefault
EndIf

HTH

>Hello All!
>
>I was wondering if someone could help me?!
>
>I look for a Function Key being Pressed in the KeyPress Event of
>a form. When this function key is pressed, I set focus to a
>particular Text Box. When the Text Box receives focus
>it comes up with a Non-Alpha Numeric character.
>
>Does anyone know how I can Filter out that Character (I believe its
>the ASCII Character for the Value of the F key or something like
>that)... i need the next box to Accept both Alpha and Numeric
>Chars (Or I woulda used One of the Input Masks)
>
>Thanx!
>Bob :-)
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform