PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → ::: Relative Database Location
::: Relative Database Location
Iniciado por Kevin Willis, fev., 12 2004 11:50 PM - 3 respostas
Publicado em fevereiro, 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?
Publicado em fevereiro, 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
Publicado em fevereiro, 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
Publicado em fevereiro, 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