On Friday, July 11, 1997 11:33 AM, Universal Thread Visual FoxPro forum [SMTP:foxpro@transformation.com] wrote:
>
> >i'm using set procedure to myapp.app i didn't use additive but it's the
> only set procedure i'm using ( so i don't think that the additive would
> matter ). after the set procedure i try DO MyPrg and get the error that
> it can't find MyPrg.prg.
> >If, however, i execute Mainprg.prg ( the prg set as the main in the
> project the app was compiled from ) it executes fine.
> >
> >In the past with fox2.5, we were able to write a library of prgs, compile
> into an app set procedure to that app, and then any prgs in that app are
> accessible. i'd like to do this same thing in vfp5.
> >
> >i thought about just passing the main a parameter telling it what prg to
> run but this seems like a kludgy workaround.
> >
> >
> >>>i've created an app and want to be able to call the individual .prgs
> within it.
> >>>in fox2.5 this worked great, but when i try it now i can only call the
> app's main prg. otherwise i get an error.
> >>>any ideas.
> >>
> >>When you set your procedures for other prgs. Are you using SET PROCEDURE
> TO MyPrg.PRG ADDITIVE.
>
> I've never compiled my procedure into an .APP extension. I put all my
> functions and procedures into an .PRG file. I include the .PRG in my
> application and issue a Set Procedure to Main.prg ADDITIVE. I don't know if
> the Set Procedure to main.app does work.
If you convert your procedure files to a .VCX you can use SET CLASSLIB TO myvcx IN myAPP.
Regards,
Steve Ketchum [sketchum@terraworld.net]
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only