Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working of if command
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01222882
Message ID:
01222894
Vues:
12
>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)
   ** Run my form
else
  =messagebox('Not authorized!')
  return .f.
endif
Not tested, just an idea.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform