Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a PRG outside of an EXE
Message
De
18/10/2001 09:53:18
 
 
À
17/10/2001 13:17:14
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00569577
Message ID:
00570217
Vues:
15
Perfect, just what I needed. Thanks!

>>This seems to be a simple question but for some reason is not working for me. Must have been too late a night.....
>>
>>Anyways, I need to call a prg outside of an executable. How would I go about doing this? I keep getting an error that the prg does not exist. I have checked during execution and the file does exist in the location I am pointing to. What am I missing here?
>
>Aside from the need for the .prg to be locatable by your executable, there's another thing: the executable won't automatically compile the .prg, so you'd have to check for the .fxp as well, and compile if needed, roughly like this:
>
>
func DoPrg
>lparameters cPrg
>if not file(cPrg)
>   return .f.
>else
>   cFxp=forceext(cPrg, "fxp")
>   lDoCompile=not file(cPrg)
>   if not lDoCompile and fdate(cPrg,1)>fdate(cFxp)
>      lDoCompile=.t.
>   endif
>   if lDoCompile
>      comp (cPrg)
>   endif
>   do (cFxp)
>   return .t.
>endif
Patrick L. Stovall
Senior Architect/Developer
MCP - C#

VeroQuest
P.O.Box 7216
Kalispell, MT 59904
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform