Start with the Tib_Connnection
put it on the form . What is used for ? maybe you asking
Well there are some resons:Here what i found in Tutorial1 which came with ibo:
IBO speaks to Interbase Server via a TIB_Connection component.The IB_Database component is just a TIB_Connection but with a whole lot of extra features
( like a built in transaction component) that together act more like the VCL TDatabase. For the best results,it is advised to use
a TIB_Connection though, as it gives you much morecontrol, functionality and power.
What do i think is that TIB_Connection is like a highway to me on witch the same as the cars
data is comming and going
What's a transaction well i imagine transaction like band on a highway,if you need datas
then the cars are comming to you
What if you Stop transaction then on the highway is trafic jam nothing is comming or going
Let's say that you have 2 databases then you need 2 transactions ;Our HighWay have 2 bands then
Before connect at something you need a database;We have a script who make this for us
Find on IBO Bars the next compo jump it on the form
Just need a connection
U need to set the database path to connect on it:Step1.gdb
The database should be created by script
On the Form it should loook like this
The code of the script is Here
Data must find a way to us (remember bands of the high way?) Transaction Single is the best for this step
Finaly form should look like this {not so bad as a jpg ;)}
Only what u need now is to connect the components.First Ib_ConnectionBar link it to the Connection
Link Transaction to the Connection;A Highway must have even a band somehow
Script need also transaction .Let' s Go in vacantion got one highway and one band
Nothing can stop us!The sky is clean and the mountains are near
Hey ! We need some code please
Hold on i found some code:
procedure TForm1.FirstConnectionBeforeConnect(Sender: TIB_Connection);
what this code do 1'st determine the Protocol then if the database exist
bIg jOb is to eXecuTe the sCriPt scMain.Execute;
Must tell u smthg:in your uses part write IB_Session;//-----****This is very important*****------
The Source is Here
Also have ZiPeD 4U all the code Step1.zip