|
-
Aug 5th, 2002, 12:43 AM
#1
Thread Starter
Lively Member
Converting String to Long?
I have a string.. it looks like this:
"21670119994"
I want to convert that to a long integer.. I get an error when I use Clng("21670119994").
Is there a better way to do this.
Thanks in advance. I know, I should already know this.. but I've never had to do it before so now it matters. =).
-
Aug 5th, 2002, 12:49 AM
#2
-
Aug 5th, 2002, 01:02 AM
#3
Addicted Member
The range for a 'long' is -2,147,483,648 to 2,147,483,647.
Convert to a 'single' or a 'double' instead.
-
Aug 5th, 2002, 01:30 AM
#4
Software Eng.
Or you could convert it to "Currency"
-
Aug 6th, 2002, 11:39 AM
#5
Thread Starter
Lively Member
Actually, I found a little snip that does what I needed.. I just send it as a string (because that's how I get the information), and the snip converts it to a byte array and then processes it.
Thanks for the help. =).
-
Aug 6th, 2002, 11:51 AM
#6
I wonder how many charact
Go ahead and post the code so someone searching the forums for this solution will find it in this thread.... (heck, I might sometime need it too)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|