Newbie question: Destroy statement returned by CreateStateme

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
ddantoni
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 17.10.2005, 15:15

Newbie question: Destroy statement returned by CreateStateme

Post by ddantoni »

Hi,
I want execute queries without use zdbo components.
So, i found in Knowledge base this sample :

...
Statement := MyZConnection.DbcConnection.CreateStatement;
ResultSet := Statement.ExecuteQuery('SELECT * FROM MyTable');
Metadata := ResultSet.GetMetadata;
...

My question is:
Must I destroy object referenced by interfaces Statement, ResultSet and Metadata ? And if yes, how ?

Thanks a lot.
David

PS: Excuse my bad English, I am French.
Post Reply