Board index » delphi » connected a IBDatabase

connected a IBDatabase


2006-01-04 03:34:00 AM
delphi182
Dear Sir
I have a component TIBDatabase and i want to connect it at run time not at
desing time
How to do it
Please write the code
Thank you for your time
 
 

Re:connected a IBDatabase

Liatifis Kostas writes:
Quote

I have a component TIBDatabase and i want to connect it at run time
not at desing time
How to do it
Please write the code
IBDatabase1.Open;
or
IBDatabase1.Connected := True;
The second way is exactly what you are doing when you set Connected to true
in the Object Inspector. In other words, any property you can set at design
time can also be set exactly the same way in code.
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: www.logicfundamentals.com/RADBooks.html
"The purpose of morality is to teach you, not to suffer and die, but to
enjoy yourself and live." - Ayn Rand