Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get the path to a parent folder
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01294263
Message ID:
01294269
Views:
19
>Is there a cleaner way to do this:
>
>
>** The database is in a subfolder called 'Data'
>sDBCPath = JUSTPATH(LOWER(DBC()))
>CD (sDBCPath)
>CD..
>sFileName = ADDBS(sDBCPath) + "vtc.ini"
>
Hmm,
sParentPath = substr(sDBCPath,1,rat('\')-1)
- not tested
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform