[fpc-pascal] Read Field names from VMT
Amir at Aavani.net
Amir at Aavani.net
Tue Dec 26 21:29:41 CET 2023
On 12/26/23 01:14, Sven Barth via fpc-pascal wrote:
> Amir--- via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
> Di., 26. Dez. 2023, 07:03:
>
> Hi,
>
> I want to retrieve the name of the fields in a record/class, at
> run
> time. It looks like "TVmt.vFieldTable" is what I need. But I
> cannot find
> any documentation about how to explore the content of this table. I
> appreciate any pointer.
>
>
> This only works for published fields and only fields of type class or
> interface can be published.
That would work for me. How can I enumerate over those fields?
Best,
Amir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20231226/366207ed/attachment.htm>
More information about the fpc-pascal
mailing list