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 

Primary Key in Ttable descendant

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





PostPosted: Mon Nov 24, 2003 8:20 am    Post subject: Primary Key in Ttable descendant Reply with quote



Hi folks,

I'm trying to create a descendant of TTable with the ability to return
the value of the current primary key.
So I wanted to create a component TasTable with read-only property
PrimaryKey, which then I could use in a statement like
MyTable.SetRange( Mytable.PrimaryKey, Mytable.PrimaryKey)
to filter the range to only the current record.

My problem : which type does my property has to have?
So: property PrimaryKey : ????
read GetPrimaryKey ;

Be aware that a Primary key can be composed of several values of
different types.

Thanks for your replys.

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