循环 - 键盘命中 [英] Loop - keyboard hit
本文介绍了循环 - 键盘命中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何写一个循环,直到键盘键没有被击中。
这样的东西:
在C中,我们可以这样做:
while(!kbhit())
{
..do what
}
如何在Access VB中执行此操作
谢谢
解决方案
在VBA中,您可以使用键预览功能。事件。
只需用这些单词检查帮助文件即可获得基础知识。
Nic; o)
< blockquote class =post_quotes>
如何编写一个循环,直到键盘键没有被击中。
这样的东西:
>
在C中,我们可以这样做:
while(!kbhit())
{
..无论如何
}
如何在Access VB中执行此操作
谢谢
- 将表单的KeyPreview属性设置为是。
- 声明表单级布尔变量。
展开 | 选择 | Wrap | 行号
您好
我的代码挂起程序。它没有做任何事情。请帮忙。
展开 | 选择 | Wrap | 行号
How to write a loop that would continue until a keyboard key is not hit.
something like this:
In C, we can do like this:
while( !kbhit() )
{
..do whatever
}
how to do it in Access VB
Thanks解决方案In VBA you can use the "key preview " event.
Just check the Helpfile with these words to get the basics.
Nic;o)How to write a loop that would continue until a keyboard key is not hit.
something like this:
In C, we can do like this:
while( !kbhit() )
{
..do whatever
}
how to do it in Access VB
Thanks- Set your Form''s KeyPreview Property to Yes.
- Declare a Form Level Boolean Variable.
Expand|Select|Wrap|Line NumbersHi
My code hangs the program. Its not doing anything. Please help.
Expand|Select|Wrap|Line Numbers这篇关于循环 - 键盘命中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆