Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Anonymous Anonymous
  Where is Anonymous Anonymous?
 
 Netherlands
 Anonymous Anonymous
 To: Sergey Karimov
  Where is Sergey Karimov?
 Reston
 Virginia - United States
 Sergey Karimov
 Tags
Subject: RE: File .prg does not exist
Thread ID: 43074 Message ID: 43238 # Views: 2 # Ratings: 0
Version: Visual FoxPro 7 Category: Distribution and InstallShield
Date: Wednesday, May 19, 2004 8:57:40 AM         
   


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.
>
> Regards,
> Sergey
>
> > 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
> > >
> > >


COMPLETE THREAD

File .prg does not exist Posted by Anonymous @ 5/17/2004 10:48:40 AM
RE: File .prg does not exist Posted by mike castillo @ 5/17/2004 11:08:41 AM
RE: File .prg does not exist Posted by Anonymous @ 5/17/2004 11:17:11 AM
RE: File .prg does not exist Posted by Sergey Karimov @ 5/17/2004 2:25:31 PM
RE: File .prg does not exist Posted by Anonymous @ 5/18/2004 5:24:25 AM
RE: File .prg does not exist Posted by Sergey Karimov @ 5/18/2004 1:28:47 PM
RE: File .prg does not exist Posted by Anonymous @ 5/18/2004 1:56:06 PM
RE: File .prg does not exist Posted by Sergey Karimov @ 5/19/2004 2:12:11 AM
RE: File .prg does not exist Posted by Anonymous @ 5/19/2004 8:57:40 AM
Sir wait --- RE: File .prg does not exist Posted by Anonymous @ 5/19/2004 9:09:35 AM
RE: Sir wait --- RE: File .prg does not exist Posted by Sergey Karimov @ 5/19/2004 1:33:03 PM
thanks a lot Posted by Anonymous @ 5/20/2004 8:15:06 AM