Re: Application or Self

From: Mike Shkolnik (mshkolnik2002_at_ukr.net)
Date: 01/13/04


Date: Tue, 13 Jan 2004 15:04:15 +0200

Both statements are valid.
Use an Application as paremeter if you'll not free the instance (in this
case when Application will be terminated, your instance will be destroyed
automatically)
But when you free an instance yourself, both statements will work in same
manner

--
With best regards, Mike Shkolnik
EMail: mshkolnik@scalabium.com
http://www.scalabium.com
"Gary B" <no@spam.com> wrote in message:
news:400387a2$1@newsgroups.borland.com...
> Which form of creating a dataset is preferred and why?
>
>  with TADODataSet.Create(SELF) do
>   try
>   //
>   finally
>   Free;
>   end;
>
> OR
>
>  with TADODataSet.Create(APPLICATION) do
>   try
>   //
>   finally
>   Free;
>   end;
>
> Thank you.
>
>