Solved

How to get pathname from a alias

Posted on 1998-06-18
3
149 Views
Last Modified: 2010-04-04
I have a problem I need to get the path from aliasname
0
Comment
Question by:lpd
3 Comments
 
LVL 1

Expert Comment

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

Accepted Solution

by:
kjteng earned 100 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

808 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