If I think what you are thinking, then neither will do the job.

You have to have an array declaration eg.

TOLEList = array of OLEVariant

OLEVariants are required to be finalized (or set to Null).

A variant is 16 bytes (at least) so this will not fit into a TList. You need
at least to create our own TOLEList etc or use dynamic arrays.

Myles.


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, August 02, 2000 11:06 AM
> To:   Multiple recipients of list delphi
> Subject:      [DUG]:  List of OLEVariant
> 
> 
> 
> Has anyone had to store a list of OLEVariant before? Are there any issues?
> 
> Do I need a TInterfaceList or just a TList?
> 
> If I use a TList and the OLEVariant is an interface then will it self
> destruct
> because the TList doesn't reference count?
> 
> 
> Thanks,
> 
> Phil.
> 
> 
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to