Access instance created in with .. do

Giganews Newsgroups
Subject:Access instance created in with .. do
Posted by: Christian Gorski (no.spam@no.spam.com)
Date:Wed, 21 Jun 2006

Is there any possibility to access the reference pointer to an instance
of an object created in with .. do?

For example, I want to call SomeFunc with the created instance of TObj:

with TObj.Create do begin
  SomeFunc(?);
  Free;
end;

TIA
Chris

Replies