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:
01067822
Views:
18
Not sure how that would work on a SET PROC TO command.

The folder '\projects\vfp1\app name\programs'

does not exist on the machine I'm on. The project folder
is on another PC, mapped as G:.

So I have to include the drive letter.





>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?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform