Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a project property I can use for this?
Message
 
 
À
06/05/2009 10:28:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01398128
Message ID:
01398160
Vues:
48
>>Hi,
>>
>>I have a .PRG that is a main program for 3 projects. When I test the program and start the application by executing this .PRG I would like to know which project I am starting from. This way, I can create a condition (in this .PRG) to load (or run) just the programs I need for this project. Note that I need it only when executing the application from VFP IDE. Is there a project property I can use for that?
>>
>>Thank you in advance for your help.
>
>Dmitry,
>
>In the exe I would have suggested _vfp.application.servername
>
>In the IDE, I would add a property to eg _screen when you start the project (config.fpw Command = do...)
>
>You can also use CurDir()
>
>Also, you can add three different functions/progs with the same name to each of the projects. The main could then call that prog which will return the project it is in
>
>There may be other options

Thank you, Gregory.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform