?
Solved

How to get pathname from a alias

Posted on 1998-06-18
3
Medium Priority
?
156 Views
Last Modified: 2010-04-04
I have a problem I need to get the path from aliasname
0
Comment
Question by:lpd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:Greedy
ID: 1353858
DBE alias or what???
0
 
LVL 2

Accepted Solution

by:
kjteng earned 200 total points
ID: 1353859
Make sure that "DB" in the uses clause
Call getAliasParams to obtain the details (filepath etc) of  alias eg. session.GetAliasParams( 'alias name', aStringListVar);

hope this help.  kjteng
0
 
LVL 4

Expert Comment

by:jeurk
ID: 1353860
Hi
I would rather use the following function :

it uses

uses db, dbtables, bde;

the function is

FUNCTION GetDir(hDB: hDbiDb): STRING;
VAR
     Dir: STRING;
BEGIN
     SetLength(Dir, dbiMaxPathLen + 1);
     Check(DbiGetDirectory(hDB, False, PChar(Dir)));
     SetLength(Dir, StrLen(PChar(Dir)));
     Result := Dir;
END;

a call example :

cheminBDD := getDir(datamodule2.TSoc.DBHandle);


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question