Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CREATE and DESTROY objects 1

Status
Not open for further replies.

hbez

Instructor
Mar 25, 2003
49
ZA
In the public section of Unit2 (no Form) I declare
constructor CREATE(Name : string);

In Unit1 I need to destroy (free) objects created with this constructor. Can someone please show me how to do that?

Many thkx
Hannes
 
When you create an object you will usually call it's .free method.

So at some point you have called:
MyObject := TSomeObject.Create('Apple');

Then later you will call:
MyObject.Free;


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top