Neil asked:

> Has anyone used RTTI to extract the info from a record type. I
> had a look at
> in Delphi 3, I could read property info etc from Class defs, but
> hit a dead
> end when trying to get record info. The debug and watch screens seem to be
> able to list the data as does code completion.

That's because the environment doesn't use the RTTI for that magic, it uses
the compiled DCU which is essentially a snapshot of the compilers internal
state. It's also how the environment can extract nice stack traces from
applications that were compiled without full stack frames.

>From memory, there were some articles in the Delphi Magazine about the
structure of DCUs over the various versions of Delphi but I think that's
more effort than it's worth.

If you want RTTI on records, your best bet would be to turn them into
classes and publish properties that match the fields of interest.

TTFN,
  Paul.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to