Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter in a text box
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00393414
Message ID:
00393943
Views:
16
Hi Nadya,

> You don't need to call keypress from valid - NEVER DO THIS . If you do this, you screw up the sequence of events. KeyPress is an EVENT (not method) and it called automatically while you're typing something on keyboard.

PMFJI,
Yes and no. Calling KeyPress() (the method) will run the code that is executed when the Kepress Event fires. You will not cause the event by doing this. (To cause the KeyPress Event, use the Keyboard command, I believe.) I agree, however, calling the KeyPress() method in the valid is not good design.
Bill Armbrecht
VFP MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform