Solved

How to get pathname from a alias

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to fill array with TArray.Create? 14 94
TEMBEDDEDWB how can i change its user agent ? 8 69
JAudiorecorder record freezing the app 29 74
How to build JSON File in Delphi 6 3 45
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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