Converting string to integer
-
Hi Is there a way in vb6 to convert a string to an integer. The string I have will always be numbers. I need to do some maths on the string.
-
Thanks. There is also one other thing when I try get the filelen of a file that is about 3gb in size it returns a -value that is no were near the correct size. This is waht I need to do the math on but can't because of the incorrect value given by filelen
-
Hi Is there a way in vb6 to convert a string to an integer. The string I have will always be numbers. I need to do some maths on the string.
CInt or CLng will also work. Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
-
Thanks. There is also one other thing when I try get the filelen of a file that is about 3gb in size it returns a -value that is no were near the correct size. This is waht I need to do the math on but can't because of the incorrect value given by filelen
FileLen, since it's return value is a Long (32-bit signed Integer), will only work with files that are less that 2 GB in size. For anything larger, you'll have to call into the Win32 API to get the file size. Discussion[^].
Dave Kreskowiak Microsoft MVP - Visual Basic
-
FileLen, since it's return value is a Long (32-bit signed Integer), will only work with files that are less that 2 GB in size. For anything larger, you'll have to call into the Win32 API to get the file size. Discussion[^].
Dave Kreskowiak Microsoft MVP - Visual Basic