From: "Mark Edington (Borland)" Subject: Re: DataLinkDir - what is it? Date: 14 Dec 1999 00:00:00 GMT Message-ID: <836e14$vb29@forums.borland.com> References: <835hu7$oj69@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Inprise Corp. X-MSMail-Priority: Normal Newsgroups: borland.public.delphi.database.ado Bill Cart wrote in message news:835hu7$oj69@forums.borland.com... > What is the DataLinkDir? It's a global function in ADODB.PAS. I don't think it is documented. It returns the path to the default location where ADO stores data link files. > When I attempt to use it in my program I get an error. Make sure you have AdoDB in your uses statement. > Is this how the ADO database connection is controled when the program is > moved to a new computer or do I have to write some code and store the > location during the install? Depending on whether or not you use a data link file, and where you decide to put them you may or may not want to use this function. In many cases redistrubution of your program will be simplier with a ConnectionString that does not use a .udl file. Mark