TMedQuery.Create TMedQuery

constructor Create(AOwner: TComponent); override;

Description

Call Create to instantiate a TMedQuery component at runtime. AOwner is the component that is responsible for freeing the component instance. It becomes the value of the Owner property.

Pass Nil as AOwner if you will destroy component manualy.