首页 | 本学科首页   官方微博 | 高级检索  
     检索      

闲置循环与Do Events语句
引用本文:刘峰.闲置循环与Do Events语句[J].广东广播电视大学学报,2002,11(3):41-43.
作者姓名:刘峰
作者单位:广东广播电视大学省公路局分校,广东,广州,510410
摘    要:Visual Basic是事件驱动型的程序设计语言。在写程序时,长时间的循环会占用CPU,以至于不能及时响应其他事件的发生。在这种情况下,Visual Basic提供了两种方法:其一,使用DoEvents函数;其二,写成“闲置循环”。

关 键 词:闲置循环  Do-Events语句  程序设计语言  DoEvents函数  格式  程序编写
文章编号:1008-9764(2002)03-0041-03
修稿时间:2002年3月28日

Idle Loop and Do Events Statement
Liu Feng.Idle Loop and Do Events Statement[J].Journal of Guangdong Radio & Television University,2002,11(3):41-43.
Authors:Liu Feng
Abstract:Visual Basic is the programming language faced object.When we use a long loop,it will take CPU a long time,as a result CPU cannot respond to other events in time.So,Visual Basic offers two ways:one is using DoEvents function,the other is using"idle loop".
Keywords:DoEvents function  idle loop  event
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号