Solved

How to get pathname from a alias

Posted on 1998-06-18
3
146 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now