| Subject: | Re: Access instance created in with .. do |
| Posted by: | Andrew T. (nocturn…@t-online.hu) |
| Date: | Thu, 22 Jun 2006 |
Hello!
I would add a variable and use that. I do this often in case of
TNotifyEvents.
Example:
---
proc SomeProc;
var
SelfNow: TObj;
begin
...
SelfNow := TObj.Create;
SelfNow.SomeFunc;
SelfNow.Free;
...
end;
I hope it helps you out.
Andrew
"Christian Gorski" <no.spam@no.spam.com> az alábbiakat írta a következo
hírüzenetben: 449953b0$…@newsgroups.borland.com...
> 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
None
Access instance created in with .. do posted by Christian Gorski on Wed, 21 Jun 2006