Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A password embedded within a menu
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00953243
Message ID:
00953456
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform