![]() |
Compilerprobleme bei Inkompatiblen Typen
Hey Ihr!
Folgendes:
Delphi-Quellcode:
Label72.Caption:= StrToFloat (Label72.Caption) - i;
Fehlermeldung:
Delphi-Quellcode:
Wieso denn? 'i' ist als Integer festgelegt und in 'Label72' speichere ich auch eine Zahl was ist da denn bitte 'Extended'???
[Fehler] u_Verwaltung.pas(5437): Inkompatible Typen: 'String' und 'Extended'
Ändere ich das Ganze so:
Delphi-Quellcode:
bekomm ich den Fehler:
Label72.Caption:= Label72.Caption - FloatToStr (i);
Delphi-Quellcode:
[Fehler] u_Verwaltung.pas(5437): Operator ist auf diesen Operandentyp nicht anwendbar
Thx 4 Cmts Lill Jens :coder2: |
Re: Compilerprobleme bei Inkompatiblen Typen
Delphi-Quellcode:
Label72.Caption:= FloatToStr(StrToFloat(Label72.Caption) - i);
|
Re: Compilerprobleme bei Inkompatiblen Typen
Zitat:
Wunderbar dankeschön :thumb: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:15 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz