Hi,
weis jemand wie man String zu Longint konvertieren kann? Ich hab ewig nicht mehr mit PASCAL programmiert und muss ein kleines Tool für die Arbeit schreiben.
Vielen Dank,
Olcay
Seite 1 von 1
Pascal: String Zu Longint Konvertieren.
Anzeige
#2
geschrieben 19. Juli 2005 - 12:15
Zitat
In Turbo/Borland Pascal, you can use the standard Val() procedure. The first argument is a string, and the second argument is a numeric variable which will be set to the numeric value represented by the string. The result variable can be any of the numeric types - from byte or ShortInt to comp or extended - the compiler will automagically pass the variable's type to the Val() procedure.
#3
geschrieben 19. Juli 2005 - 12:25
Danke Komischerweise wandelt er den String bei mir in einen Integer statt LongInt um. Ich probier mal die Zielvariable als Extended zu deklarieren. Vielleicht konvertiert er korrekt in eine Extended Variable.
Dank
Dank
Thema verteilen:
Seite 1 von 1