老师,在项目的AfterOpenProject事件设置了下列代码,现在要将次数清零,如何操作??请老师指导,谢谢
Dim n As Integer = GetConfigValue("Count",1)
Dim Code As String = GetConfigValue("Register" & ComputerId,"")
Dim Ok As Boolean
If Code > "" AndAlso DecryptText(Code,"abc","abc") = ComputerId Then '如果注册码正确
OK = True
Else
If n > 10 Then
Forms("注册").Open()
Code = GetConfigValue("Register" & ComputerId,"")
If Code > "" AndAlso DecryptText(Code,"abc","abc") = ComputerId Then '如果注册码正确
OK = True
End If
End If
If n > 10 AndAlso Ok = False Then
Messagebox.Show("您正在使用的产品已经超出试用次数!请联系开发作者,电话:18984029149,QQ:827679915,微信:ranjc001或通过手机号添加!!")
Syscmd.Project.Exit()
End If
End If
n = n + 1
SaveConfigValue("Count",n)