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