BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

offending line

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Sep 12, 2006 7:35 pm    Post subject: offending line Reply with quote



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





PostPosted: Sun Sep 17, 2006 4:15 pm    Post subject: Re: offending line Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.