PDA

Click to See Complete Forum and Search --> : *Basic can't small numbers??


Jhd.Honza
Aug 21st, 2000, 06:41 PM
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?

parksie
Aug 21st, 2000, 07:28 PM
Try:

Debug.Print 30000& + 30000&

The appended & forces it to a Long.

Al Smith
Sep 2nd, 2000, 10:26 AM
Hi,

You can also use a decimal point.

debug.print 30000. + 30000.

Al.