Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Procedure In VFP exe?
Message
De
02/05/2013 12:26:24
 
 
À
02/05/2013 12:19:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01572452
Message ID:
01572496
Vues:
30
>>In exe1 create a new "stub" prg called, lets say, stub_someproc. This stub program just calls:
>>
>>
>>   SET PROCEDURE TO the_procedure_file
>>   DO someproc 
>>
>>
>>Then in exe2 you call DO stub_someproc IN exe1
>>
>>Don't know if it will work but you can try it.
>
>as the stub is in exe1, it will work. But IMO
>
>
>   function Stub_Setproc && in Exe1
>   SET PROCEDURE TO the_procedure_file
>   return
>
>   *-- on startup of exe2
>   do  Stub_Setproc in Exe1
>
>  *-- afterwards, whenever you like 
>   DO someproc 
>
Right, yes, perhaps cleaner and to keep always using the same procedure name desired. Yes, "stub" the call to load the procedure file, then call the target procedure as normal - good solution.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform