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 

derive a new FieldClass

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





PostPosted: Thu Sep 01, 2005 7:25 am    Post subject: derive a new FieldClass Reply with quote



I Derive a field class from a standard field class:

type
TEStringField = class(TStringField)
...
end;


in my unit's Register procedure do this:


procedure Register;
begin
RegisterFields([TMyStringField­]);
end;

When I build project, a compile error showed, it's said:
"Incompatible types: 'TFieldClass' and 'Class reference'."

What's this message mean? How should I modify my program?

Thanks in advance!

Back to top
Riki Wiki
Guest





PostPosted: Sat Sep 03, 2005 8:09 am    Post subject: Re: derive a new FieldClass Reply with quote



Hoi Janet

Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing 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.