?
Solved

get alias path

Posted on 2001-06-21
2
Medium Priority
?
216 Views
Last Modified: 2010-04-06
A little question, how can I get the table alias path ??


I have a table "Table1" with The alias "MyAlias" and it has the following path = "C:\MyProject\Mybd"

What I want is to manage in runtime alias path

how can I get it?


Thanks...

Ricardo
0
Comment
Question by:AngelFireMateo
[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
2 Comments
 
LVL 3

Accepted Solution

by:
nnbbb09 earned 400 total points
ID: 6215409

Hello Ricardo,

This should do it;

Uses DBTables;

function GetAliasPath(Alias:String):String;
var
  S:TStringlist;
begin

  S:=TStringlist.Create;
  try
    Session.GetAliasParams(Alias,S);
    Result:=S.Values['Path'];
  finally
    FreeAndNil(S);
  end


regards

Jo
end;
0
 
LVL 1

Author Comment

by:AngelFireMateo
ID: 6215473
Thanks a lot

It works perfectly...

Ricardo
0

Featured Post

Technology Partners: 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

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 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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

770 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