Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disappearing menu items
Message
 
 
To
07/05/2010 18:53:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01463553
Message ID:
01463746
Views:
32
>>In my code there are 3 items that could be eliminated (based on the user preferences); at the start of the application. But, for example, the last item, Exit should not be eliminated. Note that each item is eliminated with an individual call to remove this or that item. And I have tested on my PC all the various combinations of preferences and they all seem to work; eliminating just the item that has to be. What puzzles me is how did the Exit got cut off. Maybe Sergey is right; I will ask the customer to email me the screen shot of the application.
>
>OK, it just occured to me that it might be (for example) a loop that eliminated certain elements, and that under certain conditions something might go wrong.
>

My code does not have a loop. Here is a pseudo code how it is done in the MAIN.PRG:
if Preference1 = 0
   RemoveMenuItem("Item1")
endif 
if Preference2 = 0
  RemoveMenuItem("Item2")
endif 
So there is no loop.

>>One other thing this customer has odd. They do not allow any files to be stored on the local drive; everything has to be stored on the server. Could it be that VFP in order to show menu items needs something to be stored on the local drive?
>
>I have no idea. But if you can temporarily change the policies to allow writing on the local drive, that might be tested.

Good idea. But this customer is not cooperating. This morning I asked them to call me (left a voice message and an email) or email me the screen shot with the menu pulled down. At the end of the day he sends me email saying he was busy and will do it Monday (maybe). It is very frustrating when you are trying to help them and they don't care.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform