以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  项目注册  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=129608)

--  作者:gslxgl
--  发布时间:2019/1/2 16:17:00
--  项目注册
If user.Type <> usertypeenum.developer
Tablecaptionvisible= False
End If

applicationmenu.visible=False \'用于关闭左上角的大按纽
Forms("用户登录").Open()
saveconfigvalue("默认用户",_username) \'保存最后一次登录的用户的信息

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 > 30 Then
        Forms("注册").Open()
        Code = GetConfigValue("Register" & ComputerId,"")
        If Code > "" AndAlso DecryptText(Code,"abc","abc") = ComputerId Then \'如果注册码正确
            OK = True
        End If
    End If
    If n > 60 AndAlso Ok = False Then
        Messagebox.Show("您正在使用的产品已经超出试用次数!")
        Syscmd.Project.Exit()
    End If
End If
n = n + 1
SaveConfigValue("Count",n)

打开项目后怎么出现了“不正确的数据”

--  作者:有点甜
--  发布时间:2019/1/2 16:35:00
--  

重写函数

 

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=123445&skin=0