Board index » delphi » Trying to replace VCL component with New Descendant Component
Stirling Olson
![]() Delphi Developer |
Sun, 28 Jan 2001 03:00:00 GMT
Trying to replace VCL component with New Descendant Component
I have created a new descendant class from DBLookupComboBox (thanks Yorai
Aminov), but have now run into another problem. I have the DBLookupComboBox class scattered throughout several forms and throughout several applications. What is the best way for me to replace the DBLookupComboBox components with the new descendent class without deleting the existing components and then dropping my new descendent class on the forms and re-entering all the datasource and field info for each component? I tried just changing the name of the class in the form declarations, but that gives me an error (Field FormName.cbLessor should be of type TDBLookupComboBox but is declared as TDBLookupComboBoxSEO. Correct the declaration?). cbLessor: TDBLookupComboBox; but Delphi didn't seem to like that. Any easy was to replace all my existing TDBLookupComboBox components with Thanks in advance, |