以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  错误提示次数问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=74053)

--  作者:goodnight
--  发布时间:2015/9/1 11:06:00
--  错误提示次数问题

一个系统 出错不提示不好

但老是提示,提示个没完没了,就更不好了

 

如何限制比如2秒内提示错误超过三次了,就强行终止该窗口或不再报错提示


--  作者:狐狸爸爸
--  发布时间:2015/9/1 11:56:00
--  

 可以看看:

http://www.foxtable.com/help/topics/2655.htm

 


--  作者:大红袍
--  发布时间:2015/9/1 12:43:00
--  

BeforeShowErrorMessage 事件

 

static ptime As Date = Nothing
static count As Integer = 0
Dim sp As TimeSpan = Date.now - ptime
If sp.TotalSeconds <= 1 Then
    count += 1
    If count > 3 Then
        e.cancel = True
    End If
End If
ptime = Date.now