
Zitat von
stoermi:

Zitat von
jim_raynor:
oh sorry. Hatte was verwechselt. Statt ClassInfo nimm ClassType. :duck:
Danke! So funktionierts.
Warum funktioniert es jedoch nicht mit case .. of?
Delphi-Quellcode:
case objekt.ClassType of
TAuto : edKat.Text := 'Auto';
TMotorrad : edKat.Text := 'Motorrad';
TFahrrad : edKat.Text := 'Fahrrad';
end;
Compiler bringt:Ordinalty erforderlich!?