Subject RE: [IBO] Converting from BDE - TSession
Author Ben Daniel
Hi Nando,

I mustn't be too good at searching the archives as I've searched through them and found nothing of any help.
I am beginning to wonder if this question has actually been asked at all.

Thanks for your suggestion but I have already been down your path.
I have come across TIB_Session.GetConnectionByName but finding a global (or default) session variable is obviously the key. Unfortunately the IB_Session identifier isn't a variable, it is a unit. And there is no IB_Session.Session or IB_Session.IB_Session global variable!

Surely someone else has had this problem before too? I just want to get a reference to a database by it's name.

Thanks,
Ben

-----Original Message-----
From: Nando Dessena [mailto:nandod@...]
Sent: Monday, 29 September 2003 4:59 PM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Converting from BDE - TSession


Hello,

b> Hey guys, I know you've probably been asked this question a million
b> times (so you're probably really good at answering it by now, hehe)...

You aren't as good at looking at the archives, are you? :-)

b> Can someone tell me how I can get a reference to the TIBODatabase
b> when I know the DatabaseName?

TIB_Session.GetConnectionByName is what you're after.
he global session object is the IB_Session variable, I believe.

Ciao
--
Nando mailto:nandod@...




___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/