RE: FILE .PRG DOES NOT EXIST
From: Anonymous Anonymous
To: Sergey Karimov
Virginia - United States
File .prg does not exist
RE: File .prg does not exist
Visual FoxPro 7
Distribution and InstallShield
Wednesday, May 19, 2004 8:57:40 AM
This message was rated by:
Thanks a lot sir,
May be the Set Path is all i need to solve this error.
thank you very much again sir...
> I see. It's not good. The Project Manager (PM) knows nothing about your modules. All names evaluate in run time. To solve this problem you should issue:
> set path to c:\QuickReport\Classe, c:\QuickReport\Forms, .... This command should be run before starting PM.
> Then change all callings, for example: do form (gcForms+"myForm") ----> do form myForm
> Only then PM will gather autamatically all your modules in the project. In fact, I don't understand, what's the point to call all your programs, forms, etc as you call. As concern tables it's Ok, because you can switch your application from one tables set to another. But only in a rare case you need to call different program modules in run time. And for this rare case 'External procedure' operator was invented.
> Another way - to include in the main program External operator for all your modules. It's up to you.
> > Sir i forgot to put this one
> > PUBLIC gcRoot, gcClasses, gcForms, gcGraphics,;
> > gcMenus, gcPrograms, gcQueries, gcReports, gcTables,;
> > gcData
> > cRoot = 'c:\QuickReport\'
> > gcClasses = cRoot + 'Classes\'
> > gcForms = cRoot + 'Forms\'
> > gcGraphics = cRoot + 'Graphics\'
> > gcMenus = cRoot + 'Menus\'
> > gcPrograms = cRoot + 'Programs\'
> > gcQueries = cRoot + 'Queries\'
> > gcReports = cRoot + 'Reports\'
> > gcTables = cRoot + 'Tables\'
> > so my prog will know that my .prg is in gcPrograms = cRoot + 'Programs\'
> > > When you use .prg functions names as variables you must use operator EXTERNAL PROCEDURE to explain Project Menager to include these fucntions in your project.
> > > For example:
> > > SET PROCEDURE TO c:\myprg\mainprog, c:\myprg\'userdefinefunctions ADDITIVE &&Project Manager will include these files in the project
> > >
> > > SET PROCEDURE TO (gcPrograms + 'mainprog'),(gcPrograms + 'userdefinefunctions') ADDITIVE &&Project Manager knows nothing were these files located, you need to explain:
> > > EXTERNAL PROCEDURE c:\myprg\mainprog, c:\myprg\userdefinefunctions &&now Project Manager will include these files in the Project.
> > >
> > > Regards,
> > > Sergey
> > >
> > >