Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lock My Application
Message
From
02/11/2005 15:41:19
 
 
To
01/11/2005 22:43:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01064335
Message ID:
01064721
Views:
17
you must create a timer control app level and timer event call login form. like this (in main prg):
DEFINE CLASS repeat_login AS timer
Height = 23
Width = 23
Interval = 60000 && 1 minute
Name = "repeat_login"
PROCEDURE Timer
this.interval=0 &&prevent continue
a=INPUTBOX("pass","Reenter password")
IF EMPTY(a) or a<>var_having_password
MESSAGEBOX("Don't have access",48,"Error")
this.interval=60000
RETURN .F.
ENDIF
return .T.
ENDPROC
ENDDEFINE
in every form you must restart the interval for repeat_login timer = 60000 to make sure the time to wait, using init or mousemove events.
if user doesn't open a form the timer will fire.

hope this help
John Harold Belalcázar Lozano
Associate Director Of Development
http://www.belvicto.co/
jhbelalc@gmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform