![]() |
Re: Überprüfen ob ein String eine Zahl enthält
OK, habs gefunden. ;)
Code:
Grüße
int.TryParse
Faux |
Re: Überprüfen ob ein String eine Zahl enthält
moin,
dabei hast du aber noch einen Rückgabewert, ob die Konvertierung erfolgreich war, die du dann noch auswerten must. raik
Code:
quelle msdn2
public static bool TryParse (
string s, out int result ) |
Re: Überprüfen ob ein String eine Zahl enthält
Zitat:
Aber auch egal, so spare ich mir das Casting. ;) Grüße Faux |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16: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