الرئيسية > lang > stopevent 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr fa id vi ko ja ru zh zh_TW eo
السابق  التالي  تحرير  إعادة تسمية  تراجع  بحث  الإدارة  
المستندات  
تحذير! هذه الصفحة لم يتم ترجمتها.  See english version 
STOP EVENT
STOP EVENT

This statement must be used in an event handler. It tells the interpreter that the event that called the event handler must be cancelled.

Only a few native events can be cancelled. This is primarily intended to allow you to supersede default keyboard and mouse behavior with your own.

مثال

' My text box only accepts digits

PUBLIC SUB MyTextBox_KeyPress()

  IF Instr("0123456789", Key.Text) = 0 THEN
    STOP EVENT
  ENDIF

END SUB

إنظر أيضا

Event Management