| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 389 人关注过本帖
标题:总是提示“运行时错误‘13’ 类型不匹配”,请高手指点
取消只看楼主 加入收藏
qq30612
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2014-3-5
结帖率:0
收藏
已结贴  问题点数:10 回复次数:0 
总是提示“运行时错误‘13’ 类型不匹配”,请高手指点

各位大侠,我写了一个程序,前面加上了倒计时后,总是提示“运行时错误‘13’ 类型不匹配”,然后程序就不运行了。但在编辑状态下确没有错误提示,且后面的程序能正常运行,请高手指点一下,这是怎么回事?
Private Const SYNCHRONIZE = &H100000
Private Const INFINITE = &HFFFFFFFF

Private Declare Function CreateThread Lib "kernel32" (lpThreadAttributes As Any, ByVal dwStackSize As Long, ByVal lpStartAddress As Long, ByVal lpParameter As Long, ByVal dwCreationFlags As Long, lpThreadId As Long) As Long

Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Dim tms As Integer


Private Sub Form_Load()
Timer1.Enabled = True
Timer1.Interval = 1000
tms = Val(InputBox("输入倒计时秒数"))
Me.Caption = tms
End Sub


Private Sub Timer1_Timer()
Me.Caption = Me.Caption - 1
If Me.Caption = 0 Then
Timer1.Enabled = False
End If
End Sub



 


2015-02-14 09:17
快速回复:总是提示“运行时错误‘13’ 类型不匹配”,请高手指点
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026417 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved