|
-
Aug 21st, 2000, 05:41 PM
#1
Thread Starter
Hyperactive Member
Hi!
Try to execute PRINT 30000 + 30000. You can use VBasic instead of QB, but result is same - Owerflow error.
But 30000 + 40000 is not so big problem...
It seems you can't to get numbers between 32767 and 62767 (?) when using lower (integer-type) numbers. - This was also the source of my problem when accessing large files; I couldn't set such position number, using any method.
Okay, you can use 40000 + 30000 + 30000 - 40000, but this is a little bit silly, isn't?
You can use a AS LONG, b AS LONG; then PRINT a + b, but this is also not so friendly method.
Does anybody know hot to remove this problem?
-
Aug 21st, 2000, 06:28 PM
#2
Monday Morning Lunatic
Try:
Code:
Debug.Print 30000& + 30000&
The appended & forces it to a Long.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 2nd, 2000, 09:26 AM
#3
Hyperactive Member
Hi,
You can also use a decimal point.
Code:
debug.print 30000. + 30000.
Al.
A computer is a tool, not a toy.
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
|