Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generated menu not in menus directory
Message
De
11/07/2002 10:02:49
Jonathan Cochran
Alion Science and Technology
Maryland, États-Unis
 
 
À
10/07/2002 21:09:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00676159
Message ID:
00677508
Vues:
31
Yes, it does have to do with the conversion. A new 2.6 project has "" in field "OutFile" of record 1 in the .PJX. If you convert a project from 2.6 to 6.0 (I assume it works the same in 7.0), the "OutFile" field in record 1 of the .PJX is now blank. If you create a new project in 6.0, the "OutFile" field contains "". A blank value causes the .MPR to go into the project directory (or current directory, not sure which). A "" value causes it to go into the same directory as the .MNX.

I've never had a .MPR built anywhere other than where the .MNX is using a project created fresh in 6.0 (and we always have menus in a sub-directory).

>This doesn't really have anything to do with conversion. If you create an app in either vfp6 or vfp7 and create a menu using the designer and save the .mnx file in a 'menus' subfolder of the projects folder; when you build the exe, the mpr file is output into the project directory rather than the menus directory with the .mnx file.
>
>Alan
>
>>The 2.6 converter misses a couple things when it converts the project. Specifically, look at fields "OutFile" and "CmntStyle" in record 1 of the .PJX file. Open a .PJX that was created in Visual FoxPro, and copy the values from record 1 for these two fields into record 1 of the converted .PJX. This should fix your problem. (You don't have to change the CmntStyle field. Your converted .MPRs probably have garbage characters around generated comments, instead of the default asterisks. Changing this will make it use the asterisks like it should normally do.)
>>
>>>Hi,
>>>
>>>I haven't used the menu designer for ages (all menus were build at runtime), but now I'm working on a project that was converted from FPW2.6 to VFP7 SP1 and came across the following problem.
>>>
>>>When n a menu in the menu designer and generate it, I'm prompted for a path/file where I want to store the generated mpr. My subdirectory project/menus is selected and everything works fine.
>>>
>>>When I do a "recompile all" of my project, the mprs are always generated in my project's home directory, where I don't want to have them. How can I get the mprs generated to my menus directory?
>>>
>>>TIA,
>>>Armin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform