GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
::: Relative Database Location
::: Relative Database Location
Iniciado por Kevin Willis, fev., 12 2004 11:50 PM - 3 respostas
Conecte-se…
Kevin Willis
#1
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?
Denunciar
0
0
Raimund Schuldhaus
#2
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
Denunciar
0
0
Kevin Willis
#3
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
Denunciar
0
0
Piet van Zanten
#4
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
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto