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
Title:
Multiple Development Locations
Miscellaneous
Thread ID:
01067792
Message ID:
01067792
Views:
64
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
Next
Reply
Map
View

Click here to load this message in the networking platform