Solved

get alias path

Posted on 2001-06-21
2
213 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 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 Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
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…
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…

737 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