Paul


>
> Going straight from TDataset to TCollection with property 'inspection'
(i.e.
> having it examine the RTTI property information) to automatically create
> TFields that map straight through to the underlying collection entities
> makes it really painless to just point a grid at a collection as a quick
> component editor (or whatever) UI without much thought and without having
to
> write all the boilerplate code and update it as you change your
component's
> properties or structure.

This is pretty much what I had in mind

var
  C: TCollection;
  CD: TCollectDataSet;

   ....
  CD.Collection := C;

  edt away..

>
> A little work to write in the first place, but much higher re-use 'bang
for
> your buck' afterwards.
>
> Mind you, we've written lots of TDatasets to different styles of data
> 'source' (memory, SQL, ISAM db, Collection, Interface-based) so I guess
> we've gotten used to whipping them up.
>

Are you offering?


> TTFN,
>   Paul.
>
>
> > ----- Original Message -----
> > From: Neven MacEwan <[EMAIL PROTECTED]>
> > To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
> > Sent: Thursday, February 10, 2000 6:39 PM
> > Subject: [DUG]: TCollection as Dataset
> >
> >
> > > Hiya all
> > >
> > > I was thinking that it would not be too difficult to use a
> > TCollection as
> > a
> > > Dataset
> > > (Then I could edit the collection with a DBGrid et al)
> > >
> > > Has anyone tried/used/written a component to do this
> > >
> > > TIA
> > >
> > > Neven
>
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

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

Reply via email to