Solved

get alias path

Posted on 2001-06-21
2
211 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
2 Comments
 
LVL 3

Accepted Solution

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

825 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