Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating access to a form
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Validating access to a form
Miscellaneous
Thread ID:
00632842
Message ID:
00632842
Views:
39
In the init event of the form I am validating wether the person has the access to that form or not. when the code finds the person has no access then it will goto the below code which is in the init event when it goes into the below code if it satisfies then i need to close the form.(thisform.close or thisform.release) In which event should i write bcos when i wrote in inti event its doing nothing it is still opening the form.

IF mViewType='NOACCESS'
=MESSAGEBOX("You do not have access to this Module.",48)
thisform.ViewType = "NOACCESS"
RETURN
ENDIF

when the mviewtype is not NOACCESS then it will goto this method.

IF NOT mViewType='NOACCESS'
thisform.setaccess
ENDIF


Thank you.
Next
Reply
Map
View

Click here to load this message in the networking platform