Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running the app from within foxpro
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00090589
Message ID:
00090766
Views:
27
>>What I mean by the last sentence is that SYS(3) will return the current directory. You can use this to identify where you are - I may be going in the wrong direction here though looking at your response. I use SYS(3) as the basis for relative paths for data stored in other directories.
>
>
>SYS(3) gives you a valid file name, but SYS(2003) works.
>
>I added this to the very beginning of my code:
>
>if "VFP" $ SYS(2003)
> cd c:\tripsoft\data
>endif
>
>This works!
>
>I found another problem, though. When I run the app from VFP, and then quit the app, the "quit" to quit the app quits VFP as well! Any ideas how to get around that one?
>
>Thanks,

Sorry about that! My FoxPro brain cell was being borrowed for lunch! SYS(3) does give you a unique file name - I use SYS(2003) instead as you suggested. At least you got there. As for the 'quit', change the call to 'cancel' instead. Again, you may need to play with 'clear events','release form', etc to find alternatives but hopefully cancel should do it. I hope I got the right brain cell back!
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform