![]() |
Ersatz für TryStrToInt?
Hallo,
ich suche nach einem Ersatz für die Funktion TryStrToInt, da ich D5 verwende und D5 diese Funktion nicht kennt. :( Auch die Suche und Google konnten mir nicht weiterhelfen. Hat vielleicht jemand eine entsprechende Funktion zur Hand? :angel: Wäre nett... :-D |
Re: Ersatz für TryStrToInt?
So machens die Borländer:
Delphi-Quellcode:
function TryStrToInt(const S: string; out Value: Integer): Boolean;
var E: Integer; begin Val(S, Value, E); Result := E = 0; end; |
Re: Ersatz für TryStrToInt?
...schau mal unter StrToIntDEF (Value,Def) ...
gruß ConstantGardener |
Re: Ersatz für TryStrToInt?
an alle: Danke schön! :-D
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:39 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