[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

get alias path

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
AngelFireMateo
Asked:
AngelFireMateo
1 Solution
 
nnbbb09Commented:

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
 
AngelFireMateoAuthor Commented:
Thanks a lot

It works perfectly...

Ricardo
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now