Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using skip for options as user rights in menus
Message
De
14/03/2003 16:04:40
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00765840
Message ID:
00766025
Vues:
16
>Hi All,
>i have a user.dbf with the fiels userid c(10),username c(15),password c(10),forms L,reports L tools L, etc..
>
> for eg . if the active user is ADMIN his properties on user.dbf is forms T,reports T,tools T in this situation these menus should be active , when the active user is USER and his properties on user.dbf is forms T,reports T,tools F ... tools menu should disable for this user .
>
>how can i use this logical situations in menu skip for option ? and how can i use this user.dbf while these actions occur ?

If you're using an application object, or any general repository of things which should be visible from everywhere, then you can have a member object in it where you would Scatter Name the record in user.dbf. So you would have oApplication.oUser.forms, or oApplication.oUser.tools etc available at all times. Then in your menu you could have, for example

skip for not oApplication.oUser.reports

This way you don't really care whether the user.dbf is open when the menu is refreshed or activated.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform