![]() |
is_numeric control number
hi there
is there a simple way to control if input-string is a real number (like in php is_numeric) (so i dont have to go by each char, count the dots and ask if char is in 0-9...) smt like
Delphi-Quellcode:
if ReturnedError(strtofloat(input)) then ShowMessage('you dont entered a valid real number');
|
Re: is_numeric control number
|
Re: is_numeric control number
Delphi-Quellcode:
:)
if not trystrtofloat(somestring,somefloat) then
Showmessage('Doh!'); // I knew i couldn't be the first one... |
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:36 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