Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the drive letter
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
01314645
Message ID:
01314667
Views:
7
>When I open the project as a DBF I'm looking at the field 'name' but sometimes it has '.../dir1/test.prg' instead of the drive and fullpath. How can I get the drive and full path?

Try
USE myproj
* Project home directory from the first record
lcHomeDir = CHRTRAN(homedir, CHR(0), "")
* Move to some other project item
lcName = CHRTRAN(name, CHR(0), "")
? FULLPATH(lcName, lcHomeDir)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform