vb6 - VB 6 -Overflow exception - runtime error using Val() function -
i getting runtime overflow exception when using below code:
my application in visual basic 6.0.
private sub command1_click() dim stritn string stritn = "1d998" 'when stritn has '1d998' error comes if val(stritn) = 0 msgbox ("test1") else msgbox ("else") end if end sub
in scientific notation, 1d998 1 * 10^998, ten power 998.
that number bigger can stored in variable of type available in vba.
if want perform large number arithmetic number, might worth checking out handling numbers larger long in vba.
Comments
Post a Comment