Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with menu
Message
 
 
À
18/04/2001 14:53:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00495795
Message ID:
00496979
Vues:
11
Stephane,

Since it's not my application, which has this problem, all I did, just reported it. My colleague should work it out.

>So, is there some kind of work-around?
>
>>Stephane,
>>
>>We have the similar problem here. Besides, it seems to that this problem was fixed before, but now it reappeares. Basically, this happens, if you change the default directory somewhere in a code (for instance, by cd or set default command). Now you'll have a problem with menu is not found. Each time, if I switch from the main application to another application and encountared an error where, I tried Ctrl+F2 to invoke command window, but have where is the menu error instead. This is very annoying...
>>
>>>Hi,
>>>
>>>This never happened before today.
>>>
>>>When I start my application from VFP (using the run command on my 'main' prg file), everything loads fine. My menu and my startup forms appear and there are no errors showing anywhere. But then, the first time I try to use my menu, by selecting one of it's options, an "open" window (like command 'GETFILE') appears and it seems to be looking for my menu file (*.mpx).
>>>
>>>If I choose it correctly and hit the OK button, everything runs fine from that point on. If I hit the CANCEL button, an error is issued stating that "File does not exist". But the wierd thing is that when I print the error text, it's associated method and line; there aren't any! The cMethod and nLine parameters are empty.
>>>
>>>Even wierder is the fact that when I compile my project into an application or an .exe, everythings works fine.
>>>
>>>What am I doing wrong?
>>>
>>>Stephane.
>>>
>>>
>>>P.S. I'm using an OO approach so, if this is relevant, all configuration code is done in the "BEFOREREADEVENTS" method of my 'application' class.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform