Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   MIDA VCL to FM conversion (https://www.delphipraxis.net/172423-mida-vcl-fm-conversion.html)

bernhard_LA 2. Jan 2013 22:23

MIDA VCL to FM conversion
 
hallo,


bin gerade beim Umstellen einer Anwendung von VCL auf Firemonkey.
Mida hat aus meinen VCL.Spinedit eine FM.SpinBox erzeugt.

Die Anweisung
Delphi-Quellcode:
     MyInteger := MySpinedit. Value ;
geht leider nicht mehr , Fehlermeldung ungültige Typen Single / Integer.
Ein Cast:
Delphi-Quellcode:
Integer(MySpinedit. Value )
bringt mir keine Lösung, warum ?

PS: ValueType in der Spinbox : vtInteger

Uwe Raabe 2. Jan 2013 22:29

AW: MIDA VCL to FM conversion
 
Was spricht gegen

Delphi-Quellcode:
MyInteger := Round(MySpinedit.Value);

bernhard_LA 2. Jan 2013 22:33

AW: MIDA VCL to FM conversion
 
Danke für die Lösung


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:02 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