First we need to open a connection to a database by providing the FairCom Database Engine with a user name, password and the database name.
Below is the code for Initialize():
procedure TForm1.Init;
begin
try
// Initialize the session
CtSession1.Active := True;
// Initialize the database
CtDatabase1.Database := 'tutorial';
CtDatabase1.Active := True;
// Initialize the table
TabCustMast.Database := CtDatabase1;
except
on E : ECtError do Application.ShowException(E);
end;
end;