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 

Extract interface problem with classes inheriting from TObje

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





PostPosted: Mon Sep 18, 2006 8:46 pm    Post subject: Extract interface problem with classes inheriting from TObje Reply with quote



Hi,

I'm been playing with the refactoring stuff in Delphi 2006 and have
come across the following problem. I tried running the extract
interface on four classes, two inherited from TForm, the other two
inherited from TObject. The ones which inherited from TForm worked as
expected, however the other two which inherit from TObject merely
produced an empty interface.

I can repeat the problem with the following code:

// Works
TTestObject = class(TForm)
public
procedure TOOne();
procedure TOTwo();
end;

Extract Interface refactoring produces:

ITTestObj = interface
procedure TOOne();
procedure TOTwo();
end;


TTestObject = class(TForm, ITTestObj)
public
procedure TOOne();
procedure TOTwo();
end;

However,

//Doesn't work.
TTestObject = class(TObject)
public
procedure TOOne();
procedure TOTwo();
end;

produces:

TTestObject = class(TObject)
public
procedure TOOne();
procedure TOTwo();
end;

ITTestObj = interface
end;


I've not been using Delphi for long (about 1 month reading/playing
around with it) and have probably missed something very obvious. Any
help greatly appreciated.
Back to top
Riki Wiki
Guest





PostPosted: Mon Sep 18, 2006 11:44 pm    Post subject: Re: Extract interface problem with classes inheriting from T Reply with quote



Hoi

You need to repost your message on the Borland news server to make
everybody see it and possibly answer your message.

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 IDE 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.