Show quoted text 11 lines
Hmmm maybe. In that case a record can be processed like a tree structure...
TLayer = Record
L1,L2:Integer;
TZone = Record
ID:Integer;
Tile:Array[1..3] of TLayer;
End;=>
proc CreateXML(Type,OptInfo)
begin
for every field in the record
begin
if Type = Simple-Type
Store in XML File
if Type = Array-Type
For i=StartArray to EndArray
CreateXML(Array-Type,i)
if Type = Record-Type
CreateXML(record-Type)
endend
=>
<TZONE>
<ID> Value </ID>
<TILE>
<TLAYER Pos='1'>
<L1> Value </L1>
<L2> Value </L2>
</TLAYER>
<TLAYER Pos='2'>
<L1> Value </L1>
<L2> Value </L2>
</TLAYER>
<TLAYER Pos='3'>
<L1> Value </L1>
<L2> Value </L2>
</TLAYER>
</TILE>
</TZONE>
...sort of.
How is RTTI information accesible from FreePascal/Delphi?
Rodrigo "Rui" R. (1/2 RRC2Soft)
