PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
::: Relative Database Location
::: Relative Database Location
Started by Kevin Willis, Feb., 12 2004 11:50 PM - 3 replies
Connect yourself…
Kevin Willis
#1
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?
Report
0
0
Raimund Schuldhaus
#2
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
Report
0
0
Kevin Willis
#3
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
Report
0
0
Piet van Zanten
#4
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
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text