Accessing a nested field...
Posted on 2002-05-11
i'm using TClientDataSet to read the data from a XML file.
I have a nested field and i need to access to its "subfields"... how can i do that through code?
I tried to read the help, it says something about using the TDatasetField class but i can't figure out how.
Let's say that i have something like this:
CDS := TClientDataSet.Create(Self);
CDS.Active := True;
if CDS.RecordCount > 0 then
//here i should read the subfields
//of a nested field (let's call it
//'mynestedfield')... how can i do this?
CDS.Active := False;
Any suggestion is welcome.