Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can you determine any/all open projects?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00041358
Message ID:
00041456
Vues:
34
>>This is a very good idea. In fact, the path is there, in the menu. I think PRMBAR() function will do the job.
>>
>>But you still need to look for windows, because not all those projects are opened. :)
>>
>>Vlad
>>
>>>>Loop through all windows. Open projects have titles like "PROJECT MANAGER - MYPROJ". The problem is that you don't have the path to each project. And I don't have an idea now on how to find it.
>>>>
>>>>Vlad
>>>
>
>
>Hey, that was a great idea. Unfortunately, it doesn't seem to work. Maybe I'm missing something? I tried
>
>x=PRMBAR("_MSM_FILE",16)
>
>which should return the text of the 16th item on the file menu, but all I get >is a menu not defined error. Same for every other system menu I tried. Isn't >_MSM_FILE the name of the system file menu? Just for good measure I tried the >same line using _MFILE instead with the same results. Argh.

I've found if I create a menu from scratch and run it then use the PRMBAR function it works fine. It's only when trying to use it on the default system menus does it give me a problem. However, the documentation says that PRMBAR works with the VFP system menus. Menus give me a headache. BTW, the reason I was trying to use PRMBAR is because the 16th option on the File menu is the last project opened. It contains the full path to the project.

Michael G. Emmons
memmons@nc.rr.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform