Information générale
Catégorie:
Codage, syntaxe et commandes
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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement