Freigeben über


NODEFAULT Command

Prevents Visual FoxPro from performing its default event or method processing for Visual FoxPro events and methods. For example, if the KeyPress event occurs, including NODEFAULT in the KeyPress procedure or function prevents Visual FoxPro from placing the key press into the Visual FoxPro keyboard buffer. This makes it possible for you to create a KeyPress procedure that enables you to test which key is pressed before the key is sent to the keyboard buffer.

You can place NODEFAULT anywhere within the event or method procedure. Note that NODEFAULT may also be placed within an event or method procedure in the Form Designer.

See Also

DEFINE CLASS Command | Method and Event Code Guidelines | Run Method | BeforeRowColChange Event | Add Method | OLEDragDrop Event | OLESetData Event | OLEGiveFeedback Event | OLECompleteDrag Event | QueryRunFile Event | BeforeBuild Event | QueryAddFile Event | QueryRemoveFile Event | QueryUnload Event | OLEStartDrag Event | QueryModifyFile Event