Re: dynamic object creation
- From: erewhon@xxxxxxxxxx (J French)
- Date: Fri, 28 Oct 2005 10:48:11 +0000 (UTC)
On Fri, 28 Oct 2005 11:41:17 +0200, "B.r.K.o.N.j.A."
<thebrkonja@xxxxxxx> wrote:
>All classes are descendent of one base class, they have no new methods just
>different implementations of base ones. Basicaly I need to get different
>calculation object according to value stored in database.
>Does this simplify things?
It certainly changes things.
Which comes first the Object or the thing in the database ?
My hunch is the thing in the database
Are you after something like:
ABaseClass := TSomeClass.Create( FlagFromDataBase );
ABaseClass.DoCalcs;
Where ABaseClass contains some descendant of TBaseClass ?
A bit like passing some descendant of a TStream down to a procedure,
but the other way round. ??
.
- References:
- dynamic object creation
- From: B.r.K.o.N.j.A.
- Re: dynamic object creation
- From: Maarten Wiltink
- Re: dynamic object creation
- From: B.r.K.o.N.j.A.
- dynamic object creation
- Prev by Date: Re: dynamic object creation
- Next by Date: Re: dynamic object creation
- Previous by thread: Re: dynamic object creation
- Next by thread: Re: dynamic object creation
- Index(es):
Relevant Pages
|