Fórum Criar campo calculado em runtime #265625
17/01/2005
0
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
Curtir tópico
+ 0
Responder
Posts
17/01/2005
Motta
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 ?
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)