15546.html
来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>GetTickCount的使用Sample</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>GetTickCount的使用Sample</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:albertcfchen@gvc.com">四眼蟾蜍</a> on July 12, 1999 at 20:04:34:<p>
In Reply to: <a href="15101.html">有关GetTickCount的使用...请各位高手帮帮忙...谢谢..(^_^)</a> posted by Hiei on July 02, 1999 at 13:06:24:<p>
<br>Public Declare Function GetTickCount Lib "kernel32" () As Long<p>Private Sub DelayAwhile(Optional MultiTimes As Integer = 1)<br> Dim nowtimer&<br> If MultiTimes < 1 Then MultiTimes = 1<br> If MultiTimes > 10 Then MultiTimes = 10<br> nowtimer& = GetTickCount()<br> Do<br>' DoEvents<br> Loop Until GetTickCount() - nowtimer& >= DelayTime * MultiTimes<p>End Sub<p>使用Sample:<br>Private Sub FrushComm()<br> Do<br> DoEvents<br> Loop Until Comm1.OutBufferCount = 0<br> DelayAwhile (2)<br>End Sub<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 15546-->
</ul><!--end: 15546-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?