Hi,
I need some help with my VB6 code.
I have a variable in my code set as long. As what I understand in programming, if the variable is set as integer it can only handle up to 32000 numbers and if it is set to long it can handle up to 2000000 numbers. My variable is equal to the product of 188 * 366 (variable = 188*366). Even if it is set as long I am still getting an "over flow" error but if I hardcode the variable = 1000000 the "over flow" error is not showing up. 1000000 is greater than 188*360 (= 67680) but I am not getting the over flow error in 1000000. Can anyone help me with this?
I need some help with my VB6 code.
I have a variable in my code set as long. As what I understand in programming, if the variable is set as integer it can only handle up to 32000 numbers and if it is set to long it can handle up to 2000000 numbers. My variable is equal to the product of 188 * 366 (variable = 188*366). Even if it is set as long I am still getting an "over flow" error but if I hardcode the variable = 1000000 the "over flow" error is not showing up. 1000000 is greater than 188*360 (= 67680) but I am not getting the over flow error in 1000000. Can anyone help me with this?