Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Procedure for all forms
Message
From
04/11/2008 10:23:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Procedure for all forms
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01359518
Message ID:
01359518
Views:
106
Dear Experts

There are more than 100 Forms in my Project.
I want to use following codes in the INIT event of some 50 Forms.
I want to ask:
Should I use CLASS or some Procedure and how?

Please help
select u_right
locate for usno=m.usno and uname= juststem(sys(1271,thisform))
if found()
	allow_rights= rights
	if allow_rights=0
		messagebox("Not Allowed",0+16+512,"No Permission")
		return.f.
	endif
else
	messagebox("Not Allowed",0+16+512,"No Permission")
	return.f.
endif
Next
Reply
Map
View

Click here to load this message in the networking platform