例如:
var
key: word;
begin
if {没有键盘按下//这里怎样写?} then
key:=...;
else
key:=ord(readkey);
end;
是dos trubo pascal7.0下。谢谢!!!
var
key: word;
begin
if {没有键盘按下//这里怎样写?} then
key:=...;
else
key:=ord(readkey);
end;
是dos trubo pascal7.0下。谢谢!!!
解决方案 »
- 小问题请教高手:拖动时的图标 代码自绘
- def文件如何导入到access数据库中
- 关于循环问题,急急急!!!
- 给个链接下载delphi6.0太难找了谢谢
- 我的一点疑问!我的一些构想!-------对校园信息管理系统感兴趣的朋友都来谈一下!
- 急,急!!在线等!!
- 怎样才能让DBComboBox1下拉时看到其他数据(其他记录的同一field)?
- 編程語法轉換
- 请问这条select语句(包含compute)的结果如何显示在屏幕上?
- 请高手帮助我!!
- (再再续)刚才想散分,不过不能给超过100分。想开多个贴,结果只开了一个,然后荣誉分只有81分了……(10分钟后结贴)
- @@@@@TAction是干什么的?@@@@@
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Determines if a key has been pressed on the keyboard. Declaration:
function KeyPressed: Boolean; Target:
Windows, Real, Protected Res:
The key can be read using the ReadKey function. Return Value:
True If key has been pressed False If key has not been pressed Sample Code: {KeyPress.PAS} {Sample code for the KeyPressed function.}
{ For Windows: }
{ uses WinCrt; } uses Crt; begin
repeat
Write('Xx');
until KeyPressed;
end.