Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with KeyPress
Message
From
12/12/2000 16:02:21
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00452358
Message ID:
00452533
Views:
21
>>Otherwise, if you want to keep F8, change your KeyPress() code to this:
>>If nKeyCode = -7 && F8
>> ThisForm.Save.SetFocus()
>> ThisForm.Save.Valid()
>>EndIf
>
>Mike...
>
>I've done this... But I have a problem...
>
>In Form1.TextBox.Valid:
> Do Form2 To m.var1 With m.var2
>
>In Form2
> ThisForm.xxxx.SetFocus()
>

The SetFocus can't be called from anywhere under the calling stack from a Valid() event.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform