Ich wollte einmal die neue For-In-Do testen.
Dazu habe ich den Code:
Code: Alles auswählen
For i := 0 To ComponentCount - 1 Do
If Components[i] Is TDBGrid Then
TDBGrid(Components[i]).OnMouseUp := @grdMouseUp;
Code: Alles auswählen
Var co: TComponent;
: : :
For co In Components Do
If co Is TDBGrid Then
TDBGrid(co).OnMouseUp := @grdMouseUp;
fMain.pas(4722,13) Error: Wrong number of parameters specified for call to "GetComponent"
fMain.pas(4722,13) Error: Cannot find an enumerator for the type "<erroneous type>"
hmm. Was mache ich falsch?
Gruß Markus