Board index » cppbuilder » Component with TTable. How to publish properties?
Paw Suddergaard
![]() CBuilder Developer |
Paw Suddergaard
![]() CBuilder Developer |
Component with TTable. How to publish properties?2004-10-05 11:23:31 PM cppbuilder87 Hello, I'm building a component with an editbox and a TTable. I would like to publish Database, Table and Index properties from the TTable. How would i do that? Any help is greatly appreciated.... Paw Suddergaard |
Farmazon
![]() CBuilder Developer |
2004-10-06 08:17:18 AM
Re:Component with TTable. How to publish properties?
create property with some name and access to property with getter and setter
methods Ex.: __property TTable* Table={read=GetTable; write=SetTable}; void __fastcall SetTabel(TTable* t) { FTable->Assign(t) } TTable* __fastcall GetTable() { return FTable; } "Paw Suddergaard" < XXXX@XXXXX.COM >сообщи?сообщила ?новостях следующе? QuoteHello, |
Paw Suddergaard
![]() CBuilder Developer |
2004-10-06 05:28:01 PM
Re:Component with TTable. How to publish properties?
Hello!
Thanks for the reply! i tried using your method, but if i chose a table in designtime i get an error : "Cannot assign a TTabel to a TTable" I would like to be able to have the table inside my component and then just publish the properties from it. I hope you can help me, Many thanks Paw "Farmazon" < XXXX@XXXXX.COM >wrote in message Quotecreate property with some name and access to property with getter and {smallsort} |
Paw Suddergaard
![]() CBuilder Developer |
2004-10-06 09:42:41 PM
Re:Component with TTable. How to publish properties?
I found a better way of doing it... Just used a Datasource instead!
Thanks Paw "Paw Suddergaard" < XXXX@XXXXX.COM >wrote in message QuoteHello! |