Solved

get alias path

Posted on 2001-06-21
2
209 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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

22 Experts available now in Live!

Get 1:1 Help Now