Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu .mpr file not compiling into EXE 5.0a
Message
From
21/08/1997 17:12:55
 
 
To
21/08/1997 17:00:41
Monte Murdock
Universal American Mortgage Company
Clearwater, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00046277
Message ID:
00046283
Views:
23
>>>>>>>>>>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

Basically, it should be Ok. However, I would recommend you to use anyway:
IF .F.
do ptsmenu.mpr
Endif
Sometimes, double-proof is helpful.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform