Hi,
let say I have code:
when I try to add above value, I got error:
Run-time error '6':
Overflow
How to avoid or eleminate it?
let say I have code:
Code:
Dim L1 as Long, Dim L2 as Long
Dim L3 as Long, Dim L4 as Long
Dim L5 as Long, Dim L6 as Long
Dim sum_L as Long
L1 = 1
L2 = 100
L3 = 10000
L4 = 1000000
L5 = 100000000
L6 = 10000000000
sum_L = L1+L2+L3+L4+L5+L6 'error
when I try to add above value, I got error:
Run-time error '6':
Overflow
How to avoid or eleminate it?