Hallo,
ich habe in einem Panel u.a. mehrere Comboboxen (vom Typ TDBComboBox). Ich möchte nun prüfen, ob eine dieser Comboboxen leer ist und falls ja, den Focus drauflegen.
Das Prüfen funktioniert, nur mit dem Setfocus haut's nicht hin.
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
| for z_ind1:=0 to (Panel3.controlcount - 1) do begin if (Panel3.controls[z_ind1].ClassType = TDBComboBox) and (Panel3.controls[z_ind1].GetTextLen = 0) then begin showmessage('Bitte Wert auswählen!'); exit; end; end; |
Kann jemand bitte weiterhelfen?
Moderiert von
raziel: Delphi-Tags hinzugefügt