Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 To: andrew kabz
  Where is andrew kabz?
 kampala
 Uganda
 andrew kabz
 Tags
Subject: RE: Cannot Quit Visual Foxpro
Thread ID: 311040 Message ID: 311046 # Views: 50 # Ratings: 2
Version: Visual FoxPro 9 Category: Forms
Date: Tuesday, June 28, 2011 1:36:12 PM         
   


> >
> > Give
> >
> > ON SHUTDOWN DO MyShutDown
> >
> > before the READ EVENTS.
> >
> > Do not use full paths when calling forms, etc. You will not be able to move the project from one driver/folder to another. Use relative paths instead.
> >
> > Regards
> > Tushar
>
> Thanks Tushar, can you give me an example of how to use relative path? Thank you, i didn't know that.
> Regards
> Andrew

Basically you should remove the c:\ from wherever you are using paths. I am assuming that your current folder is c:\. In that case you would have

lcImage = "mileage\images\rhsp4.jpg"

DO FORM 'LIBRARY\forms\frmEx1Splash.SCX'

DO FORM 'library\forms\login.scx'

DO 'library\menus\libmenu.mpr'

Or you could

set path to LIBRARY \ forms;library \ menus
&& Remove the spaces in the paths.

and

DO FORM frmEx1Splash.SCX

DO FORM login.scx

DO libmenu.mpr


Regards
Tushar

ENTIRE THREAD

Cannot Quit Visual Foxpro Posted by andrew kabz @ 6/28/2011 12:52:22 PM
RE: Cannot Quit Visual Foxpro Posted by tushar @ 6/28/2011 12:59:05 PM
RE: Cannot Quit Visual Foxpro Posted by andrew kabz @ 6/28/2011 1:06:16 PM
RE: Cannot Quit Visual Foxpro Posted by tushar @ 6/28/2011 1:36:12 PM
RE: Cannot Quit Visual Foxpro Posted by andrew kabz @ 6/28/2011 2:07:22 PM
RE: Cannot Quit Visual Foxpro Posted by andrew kabz @ 6/28/2011 3:09:53 PM
RE: Cannot Quit Visual Foxpro Posted by tushar @ 6/28/2011 4:55:17 PM
RE: Cannot Quit Visual Foxpro Posted by andrew kabz @ 6/28/2011 5:10:14 PM