Mein Problem:
Ich möchte ein Label.Caption, dass sich im Laufe des Spiels verändert, in einen Integerwert umwandeln. Am Ende soll überprüft werden, ob Label.Caption höher als das Limit 100 ist.
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
| Pot_lbl.Caption := StrToInt(hv); Application.ProcessMessages;
If u_Spieleinstellungen.Spieleinstellungen_Form.Limit_combo.Text = '100' then begin LimitA := 100; end;
If Pot_lbl.Caption > LimitA then begin showmessage('Gewonnen'); end; |
Fehlermeldung: String und Integer inkompatible typen!
Ich hoffe ihr versteht mein problem!
Danke schonmal für eure Hilfe;