classdelphipropertiesinterfacetquery

TEdit and TQuery


I have class:

TcvDbedit = class(TCustomMaskEdit)
...
private
  ...
  fQuery: TQuery;
  ...
protected
  ...
public
  constructor Create(AOwner: TComponent); override;
  destructor Destroy; override;
  ...
published
  ...
  property DataQuery: TQuery read fQuery write fQuery;
  ...

in this way I get TQuery as a property and I can change property query. I need something else, to change properties of tQuery and to save them in dfm. I don't want TQuery to be visible on form. Actually I work with TFDQuery. How can I achieve that?


Solution

  • Maybe you need of SetSubComponent.