*首先检查是否超过允许的最多登录次数
thisform.nLogTimes=thisform.nLogTimes+1 &&当前登录次数加1
if thisform.nLogTimes>thisform.nMaxLogTimes
VFP提示没有nlogthims语句,那该怎么改表单才能运行啊???
------解决方案--------------------------------------------------------
nMaxLogTimes,,nlogthims都是自定义属性,你可以用公用变量来替代
------解决方案--------------------------------------------------------
检查FORM中的是否有nlogthims属性、方法,如果没有,用变量试试
------解决方案--------------------------------------------------------
在FORM 的INIT 中寫:
ThisForm.nLogTimes=0
thisform.nMaxLogTimes=3 &&最多可運行3次。
------解决方案--------------------------------------------------------
如果不会手动添加自定义表单属性,也可以运行时代码添加,如在表单的 Init 事件加代码:
This.AddProperty("nMaxLogTimes",0)
This.AddProperty("nLogTimes",0)