Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Widestring und Float (erledigt) (https://www.delphipraxis.net/137330-widestring-und-float-erledigt.html)

youuu 18. Jul 2009 23:03


Widestring und Float (erledigt)
 
Hi,

habe ein Problem mit Widestring und Extended.

Beispiel:
Delphi-Quellcode:
s: Widestring;
price, volume: Extended

s:= FloatToStr(StrToFloat(s) - (price * volume));
Kommt Fehlermeldun das es kein gültiger gleitkomma Wert existiert, allerdings wenn ich s: string; setze funktioniert es.


Edit: sorry beim neu starten von dDelphi funktionierte es auf einmal wieder mit widestring ganz normal.


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:36 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz