>thank Naomi your reply, I want to run a form with two diffrent user , and get user name in memory. I public "feeuser" I get this user in next form.
>
>simply I keep a record who is running this form.
lcCurrentUser = lower(STREXTRACT(SYS(0), "# ", ""))
#define SUPERUSERS "'khubaib','abid'"
if inlist(m.lcCurrentUser, &SUPERUSERS)
else
=messagebox('Not authorized!')
return .f.
endif
Not tested, just an idea.
If it's not broken, fix it until it is.
My Blog