Board index » cppbuilder » Component with TTable. How to publish properties?

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
 
 

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 >сообщи?сообщила ?новостях следующе?
Quote
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


 

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
Quote
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 >сообщи?сообщила ?новостях следующе?
news:4162bd32$ XXXX@XXXXX.COM ...
>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
>
>


 

{smallsort}

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
Quote
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
news: XXXX@XXXXX.COM ...
>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 >сообщи?сообщила ?новостях
следующе?
>news:4162bd32$ XXXX@XXXXX.COM ...
>>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
>>
>>
>
>