Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Datentype-Wandlung (https://www.delphipraxis.net/87412-datentype-wandlung.html)

Mucki 28. Feb 2007 12:47


Datentype-Wandlung
 
Hallo

Ich habe da eine Frage:

Wie kann ich den Wert z.B. eines Editfeldes 6,6 (real)
an einen Grid als 66 übergeben?
Also ohne komma (als integer) :oops:

Gruß Mucki

mkinzler 28. Feb 2007 13:00

Re: Datentype-Wandlung
 
Einfach

Delphi-Quellcode:
s := StringReplace( Edit.Text, ',', '', []);

Mucki 28. Feb 2007 13:48

Re: Datentype-Wandlung
 
Kannst Du mir das erläutern... :?

wäre nett!

mkinzler 28. Feb 2007 13:55

Re: Datentype-Wandlung
 
Es wird das Komma durch einen Leerstring ersetzt.


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