Criar campo calculado em runtime
pessoal,
Estou precisando criar um campo calculado em um ClientDataSet em run-time.
Alguém saberia me dar uma ajuda?
obrigado
Diogo
Estou precisando criar um campo calculado em um ClientDataSet em run-time.
Alguém saberia me dar uma ajuda?
obrigado
Diogo
Diogoalles
Curtidas 0
Respostas
Motta
17/01/2005
Do manual ...
TField.Create
TFieldSee also
Creates and initializes a field component.
constructor Create(AOwner: TComponent); override;
Description
Do not create TField instances. TField is an abstract base class which should not be directly instantiated. The constructor for descendant classes is usually called indirectly by using the Fields editor at design time to create a persistent field component. Dataset objects also call field constructors automatically to create dynamic field components.
After calling the inherited constructor, TField initializes the Visible property to True.
--------------------------
ainda que fosse possível , como vincular a lógica do OnCalcFields ?
TField.Create
TFieldSee also
Creates and initializes a field component.
constructor Create(AOwner: TComponent); override;
Description
Do not create TField instances. TField is an abstract base class which should not be directly instantiated. The constructor for descendant classes is usually called indirectly by using the Fields editor at design time to create a persistent field component. Dataset objects also call field constructors automatically to create dynamic field components.
After calling the inherited constructor, TField initializes the Visible property to True.
--------------------------
ainda que fosse possível , como vincular a lógica do OnCalcFields ?
GOSTEI 0