Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu not compiling in EXE VFP 5.0a
Message
De
22/08/1997 12:09:05
 
 
À
22/08/1997 11:48:29
Monte Murdock
Universal American Mortgage Company
Clearwater, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00046177
Message ID:
00046414
Vues:
36
>>>>>>>>>>>>>>Correct me if I am wrong but isn't a menu suppose to compile when included in the Project Manager.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>I compile the exe, run the exe and everything runs fine until it gets to the method which run the .mpr file then it tells me that it cannot find the file.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>Any ideas anyone?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>MOnTe
>>>>>>>>>>>>>
>>>>>>>>>>>>>how are you trying to call the menu? is it in a top level form or the main vfp window?
>>>>>>>>>>>>>i think you have to generate the menu from the menu designer before you compile but i could be wrong.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>I generated the mpr from the menu designer before compiling the exe. The menu is being called from an application object.
>>>>>>>>>>>
>>>>>>>>>>>are you sure it's not excluded from compile? if it is, it will have a little circle with a slash across it in the project manager.
>>>>>>>>>>
>>>>>>>>>>I triple checked.
>>>>>>>>>
>>>>>>>>>I had the same problem and it was my path. I had the same menu file in
>>>>>>>>>two different locations.
>>>>>>>>
>>>>>>>>I tried hard coding the path and I searched for other menu files in the same place and it still is looking for the file instead of compiling the .mpr file in the exe.
>>>>>>>
>>>>>>>I am sure it is a PATH problem and not a problem with vfp50a..
>>>>>>>What do you think Edward..
>>>>>>
>>>>>>So far, nothing.
>>>>>
>>>>>I hard coded the path when calling the .mpr file for example:
>>>>>
>>>>>lcFileName = "S:\CBFPTS\MENUS\PTSMENU.MPR"
>>>>>DO (lcFileName)
>>>>>
>>>>>It still will not compile the above file in the exe. When the exe gets to the point of executing that part of the program it looks for the file.
>>>>>
>>>>>MOnTe
>>>>
>>>>The compiler will never see it when you call it with macro substitution as you have done here. if you need to use the above method try adding the following code to make sure the compiler see's the menu.
>>>>
>>>>if .t. = .f.
>>>> do S:\CBFPTS\MENUS\PTSMENU.MPR
>>>>endif
>>>
>>>
>>>The main form is called the same way and it runs wonderfully. Why would the form run and not the menu?
>>>MOnTe
>>
>>Try rebuilding you project. If that does not work, try making a test menu
>>and see if that compiles with your project...HTH :)
>
>I have tried everything and finally found the solution was to take the following line out of the DoMenu Method of the base application class:
>*!* IF NOT FILE(lcFileName)
>*!* this.FileNotFoundMsgBox(lcFileName)
>*!* RETURN .F.
>*!* ENDIF
>I took out this line and it complied and ran perfect. What I don't understand is that the same line is in the DoForm class and it doesn't effect the main form when I run it.
>
>MOnTe

Try taking out the RETURN .F. and putting that code back in the DoMenu..
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform