Dear Sir,
While using below codes, I created a class named "permit" and droped this class on form.
When I run form it says
"Not Allowed" and form Executes properly instead of retrun.f.
But...
When I paste below codes on INIT event form THEH
Everything works fine and Form closes.
May in case of of droping class on form,
the class codes does not fire and Form's Init event firs first.
While using CLASS, what other codes should I use?
Please help
select u_right
locate for usno=m.usno and uname= juststem(sys(1271,thisform))
if found()
if rights=0
messagebox("Not Allowed",0+16+512,"User Rights")
return.f.
endif
else
messagebox("User Not Found",0+16+512,"User Rights")
return.f.
endif