Access开发培训
网站公告
·Access专家课堂QQ群号:151711184    ·Access快速开发平台下载地址及教程    ·欢迎加入Access专家课堂微信群!    ·如何快速搜索本站文章|示例|资料    
您的位置: 首页 > 技术文章 > 综合其它

【译文】如何取消事件

时 间:2013-05-21 09:14:16
作 者:周芳(转)   ID:24526  城市:上海
摘 要:在某些情况下,您可能想要一段包含在一个事件过程中的代码来取消相关的事件。例如,您可能想要在一个窗体的打开事件中包含一段取消打开事件的代码,来防止窗体在某些条件不满足的情况下打开。
正 文:

来自:微软  翻译:周芳

【译文】如何取消事件

      在某些情况下,您可能想要一段包含在一个事件过程中的代码来取消相关的事件。例如,您可能想要在一个窗体的打开事件中包含一段取消打开事件的代码,来防止窗体在某些条件不满足的情况下打开。

   

     你可以通过设置一个事件过程的“取消参数为真”来取消一个事件。

 

【原文】How to Cancel an Event

Under some circumstances, you may want to include code in an event procedure that cancels the associated event. For example, you may want to include code that cancels the Open event in an Open event procedure for a form, preventing the form from opening if certain conditions are not met.


You can cancel the following events:


You cancel an event by by setting an event procedure's Cancel argument to True.

 



Access软件网官方交流QQ群 (群号:483923997)       Access源码网店

常见问答:

技术分类:

相关资源:

专栏作家

关于我们 | 服务条款 | 在线投稿 | 友情链接 | 网站统计 | 网站帮助