Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A password embedded within a menu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00953243
Message ID:
00953456
Vues:
27
I generally stay away from doing this. Every time you rebuild you have to remember to edit the generated code. If you forget once, the client calls to tell you it's broken. "Why did you take it out?"

The Skip For condition can be found on each individual menu item. It should only run for the selection in which you defined it. Maybe it was put up too high?

I think maybe this is unworkable for what the client wants. A better way would be to put one selection on the menu that anyone can get to that prompts for the password. Use a procedure rather than a command. In the procedure: call the password form which returns the logical result, then test the logical value and if the password was valid have some code that sets a global logical which can be checked in the skip for of each menu selection requiring the password. Alternatively, the form can do the work, by pushing the menu and activating a new menu that has the password secured items.

Just a few ideas for you.

Dana
>Thanks Herman,
>
>Thats exactly what I wanted
Where's the damned Any Key?...too late
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform