dynamic TOracleSession and TOraDataSet

jomaa

Member
Hi,

how can I dynamicly create a instance of a TOracleSession Object and a TOraDataSetObject in my Application?
 
It works like any other component. For example:
Code:
begin
  MySession := TOracleSession.Create(nil);
  MySession.LogonUsername := 'scott/tiger@chicago';
  MySession.LogOn;
  MyDataSet := TOracleDataSet.Create(nil);
  MyDataSet.Session := MySession;
  MyDataSet.SQL.Text := 'select * from emp';
  MyDataSet.Active := True;
  ...
  MyDataSet.Free;
  MySession.Free;
end;
 
Back
Top