| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Tue Sep 12, 2006 7:35 pm Post subject: offending line |
|
|
I use D5 Enterprise.
This typo
DptQry:=TIBOQuery.Create(self);
with DptQry.Create(self) do
begin
instead of
DptQry:=TIBOQuery.Create(self);
with DptQry do
begin
has kept me busy for the last 12 hours :)
I find the line
with DptQry.Create(self) do
quite interesting.
Can an object instance create another object instance ?
I would expect the compiler issue at least a warning here...
How do more recent versions of Delphi handle such a call ?
Thank you
Peppe Polpo |
|
| Back to top |
|
 |
Riki Wiki Guest
|
Posted: Sun Sep 17, 2006 4:15 pm Post subject: Re: offending line |
|
|
Hoi Peppe
This newsgroup officially closed years ago. You need to repost your message
in the b.p.delphi.language.delphi.general newsgroup and do so using the
Borland news server, if you want people to see it.
How to post to Delphi newsgroups:
<http://delphi.wikia.com/wiki/Delphi_Newsgroups> |
|
| Back to top |
|
 |
|