Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Trystrtoint für Longint ? (https://www.delphipraxis.net/100617-trystrtoint-fuer-longint.html)

HolgerCW 1. Okt 2007 14:22


Trystrtoint für Longint ?
 
Hallo zusammen,

gibt es eine funktion wie Trystrtoint auch für Longint ? Habe nämlich Zahlen die Zehn-Stellig sind.

Gruss

Holger

Bernhard Geyer 1. Okt 2007 14:23

Re: Trystrtoint für Longint ?
 
StrToInt64Def falls dein Delphi neu genug ist

Muetze1 1. Okt 2007 14:30

Re: Trystrtoint für Longint ?
 
LongInt = Integer bei einem 32 Bit Delphi Compiler. Und High(Integer) ist 2147483647, somit 10-stellig. Was suchst du also nun?

Um es nochmal zu verdeutlichen: TryStrToInt() ist für LongInt und Integer, da Integer = LongInt ist.

HolgerCW 1. Okt 2007 14:33

Re: Trystrtoint für Longint ?
 
Hallo,

danke für den Hinweis.

Mit Trystrtoint64 klappt es nun.

Gruss

Holger


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