Einzelnen Beitrag anzeigen

WojTec

Registriert seit: 17. Mai 2007
482 Beiträge
 
Delphi XE6 Professional
 
#5

Re: Need create and call method from many class types

  Alt 6. Jan 2011, 21:15
What it mean? This is somethink like this (I saw somewhere, but don't know how it working):

TClassOfBase = class of TBaseClass

Delphi-Quellcode:
TBaseClass = class;
TSomeClassA = class(TBaseClass);
TSomeClassB = class(TBaseClass);

//(TSomeClassA and TSomeClassB) are base for any class I'm working with it).

I have TClass1(TSomeClassA), TClass2(TSomeClassB), etc. How it should be done to avoid many thousends if-then-else?

Could you explain me, because I don't understand?

Geändert von WojTec ( 6. Jan 2011 um 21:20 Uhr)
  Mit Zitat antworten Zitat