adding variables

Posted by Guest1 on Tue 08 Oct 2002 04:44 AM — 2 posts, 11,195 views.

USA #0
not sure what I'm doing wrong here..

sub expcounter (thename, theoutput, thewildcards)
dim expnew
dim expold
dim expnewtotal
expnew = thewildcards (1)
expold = World.GetVariable("groupexptotal")
expnewtotal = cint (expold) + cint (expnew)
World.SetVariable "groupexptotal", expnewtotal
end sub

I keep getting an error about ( Overflow. 'cint' ) ..can anyone set me right here please?
USA #1
doh.. nevermind. changed the line

expnewtotal = cint (expold) + cint (expnew)

to

expnewtotal = cLng(expold) + cLng(expnew)

seems to be ok now :)