[Lazarus] How to cast a Interface to a Object in Lazaeus

Marcos Douglas md at delfire.net
Thu Mar 12 13:26:50 CET 2015

On Thu, Mar 12, 2015 at 8:39 AM, aradeonas <aradeonas at operamail.com> wrote:
> For example I have interface for filetypes that have type,size,name but
> have class for video,audio and picture and I want to add them in the
> list and then get them and get name and size and other propertice
> considering type.
> Regards,
> Ara

So work using objects directly.
Why do you want to use interfaces if you will use casting for a concrete class?

Marcos Douglas

More information about the Lazarus mailing list