Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enable/Disable Menu item
Message
De
10/09/2000 23:57:15
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Enable/Disable Menu item
Divers
Thread ID:
00414768
Message ID:
00414768
Vues:
73
How could I enable/disable the Menu item(s).

Eg: frmMDIForm.mnuTransaction.Enable = True (will turn on)

But I have store all the menu items name in a Table, so that
I can use a loop to assign the access rights to the items.

My Table contain the following fields:
ItemName Normal Manager
---------------------------------------------------------
frmMDIForm.mnuTransaction.Enable True True
frmMDIForm.mnuReport.Enable False True

If a user having the MANAGER rights, I would use a WHILE loop
to set the Menu item to True/False.

I tried the following code, but couldn't achieve it.

Trim(rsAcessTable!ItemName) & " = " & ("!" & strAccessCode)

strAccessCode = stores (NORMAL or MANAGER) taken from Staff Table.

In VB6, is there something like &strAccessCode (like in VFP, will
run the content).
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform