Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Development Locations
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01067792
Message ID:
01067801
Views:
17
Kevin;


What I do is to use my config file and set relative paths without hard coding drives, etc. Here is an example:

* Config.fpw

Path = Forms, classes, reports, data, menu, programs


Tom


>From time to time I take work home. There are places in my app where I have:
>
>
>SET PROCEDURE TO d:\projects\vfp1\proj folder\some.prg
>
>
>At home, my projects are on a different PC on the network, with only the drive letter
>being different. Therefore the above line of code causes an error
>
>I was considering something like the following:
>
>
>
>PROCEDURE GetDevLoc()
>
>  LOCAL cRetVal
>  cRetVal = SUBSTR(SYS(0), 1, AT("#", SYS(0))-1)
>
>ENDPROC
>
>
>Which I could then use:
>
>
>SET PROCEDURE TO GetDevLoc() + "\projects\vfp1\proj folder\some.prg"
>
>
>Anyone have a better idea?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform