Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the directory to home directory
Message
From
07/08/2000 18:14:38
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00399588
Message ID:
00401979
Views:
15
Fred,

I modified my start program I had added to my VFP6 sp3 config. After I read your message about the JUSTPATH() command.



#INCLUDE JUSTPATH(FULLPATH(PROGRAM()))+'\include file'
&& Don't leave out the forward slash

&& Here I address my Public Variables and
&& Assign starting values to Public variables

PUBLIC MYPATH

MYPATH=""

&& I know that I don't have to address the Type of Variable here but it does make it easier to read.

&& End Assignment

&& Telling the System where the Files are

MYPATH=JUSTPATH(FULLPATH(PROGRAM()))
CHDIR(MYPATH)
SET PROCEDURE TO myprocedures

SET DEFAULT TO (MYPATH)

MYPATH= SYS(5)+'\MYDATA'
CHDIR(MYPATH)

&& Set the Systems Search Path

SET PATH TO (MYPATH)

&& Open the DataBase

OPEN DATABASE MYPATH+'\mydata.dbc' SHARED

MYPATH= SYS(5)+'\MYDIR' && contains my forms, reports etc
CHDIR(MYPATH)

&& End Setup System Files

&& Set Escape on

SET ESCAPE ON

This sets up the Developement environment for the two PC we use!

P.S. If you see anything I may need to address please let me know.

TIA


>>Fred Like your sig.
>>
>>Can't count the munber of times I heard it/said it.
>>
>>Do you have a #include statement? If so how do you handle that?
>>
>>TIA
>
>I have not tried this with a #include, but it should work.
Previous
Reply
Map
View

Click here to load this message in the networking platform