Re: [fpc-pascal] enumerate record fields at runtime

2020-04-07 Thread Fabio Luis Girardi via fpc-pascal
Thanks for the clarification! Em ter., 7 de abr. de 2020 às 12:06, Sven Barth escreveu: > Fabio Luis Girardi via fpc-pascal > schrieb am Di., 7. Apr. 2020, 14:58: > >> >> Using RTTI I can count the record fields, but until now, I can't find a >> way to get the field names. >> > > More is not po

Re: [fpc-pascal] enumerate record fields at runtime

2020-04-07 Thread Sven Barth via fpc-pascal
Fabio Luis Girardi via fpc-pascal schrieb am Di., 7. Apr. 2020, 14:58: > > Using RTTI I can count the record fields, but until now, I can't find a > way to get the field names. > More is not possible as of now. Only once the Extended RTTI is supported this will be possible. Regards, Sven __

[fpc-pascal] enumerate record fields at runtime

2020-04-07 Thread Fabio Luis Girardi via fpc-pascal
Hi all! To FPC developers: FPC trunk has a way to enumerate all record fields and get their names? For example: type aRec = record a:String; b:integer; K:Int64; W:Single; end; I want to do something like this: for f in aRec.Fields do writeln(f.Name); and get the output