Assigned & TADODataset




Hi There

Can somebody please tell me why code such as :-

var
myDS : TADODataset;
begin

if Assigned(myDS) then
showmessage('Assigned')
else
showMessage('unassigned');

end;

Seems to indicate that the dataset(myDS) is assigned and ready for use before I have even created it !!.

It's probably a fault with my understanding of the Assigned function, but I would still like to know.

As a side issue how do I check that a dataset is ready for use i.e. created ??

Many thanks - Martin
.