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 a b K W I want a way to simple stream records to JSON, without the need of writing a customized streamer for each record type. Using RTTI I can count the record fields, but until now, I can't find a way to get the field names. Best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal