PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → ::: Relative Database Location
::: Relative Database Location
Started by Kevin Willis, Feb., 12 2004 11:50 PM - 3 replies
Posted on February, 12 2004 - 11:50 PM
Is there somewhere in the LDM where it's possible to set the
relative location for files and indexes, in relation to the
running executable directory?
Posted on February, 13 2004 - 10:15 AM
Is there somewhere in the LDM where it's possible to set the
relative location for files and indexes, in relation to the
running executable directory?

Hi Kevin,
there are serveral ways to go for you.
1. Defines more than one connection in the Analyze
2. Use HDescribeConnection/HOpenConnection together with HListFile/HChangeConnection (my way)
2. Change the properties of your connection (=> YourConn..Ct???)
HTH
Raimund
Posted on February, 14 2004 - 5:51 AM
Thankyou.
Is there somewhere in the LDM where it's possible to set the
relative location for files and indexes, in relation to the
running executable directory?
Hi Kevin,

there are serveral ways to go for you.
1. Defines more than one connection in the Analyze
2. Use HDescribeConnection/HOpenConnection together with HListFile/HChangeConnection (my way)
2. Change the properties of your connection (=> YourConn..Ct???)
HTH
Raimund
Posted on February, 15 2004 - 4:55 PM
Hi Kevin,
I would suggest the following code in the project initialization section:
sExeDir,MyDataDir are string
MyDataDir="\data\"
//get the program running directory
IF OnTestMode() THEN
// In test mode the execution directory is returned
sExeDir = fCurrentDir()
ELSE
sExeDir = ExeInfo(exeDirectory)
END
HSubstDir("?",sExeDir+MyDataDir)
Regards,
Piet
Is there somewhere in the LDM where it's possible to set the
relative location for files and indexes, in relation to the
running executable directory?
Hi Kevin,

there are serveral ways to go for you.
1. Defines more than one connection in the Analyze
2. Use HDescribeConnection/HOpenConnection together with HListFile/HChangeConnection (my way)
2. Change the properties of your connection (=> YourConn..Ct???)
HTH
Raimund