Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Overflow

  1. #1
    New Coder
    Join Date
    Jan 2005
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Overflow

    hi.. i have the followin codes:

    Code:
    	<% dim counterVar
    	counterVar = 1%>
    
    	<% For a=0 to UBound(Action,2) %>
    		<% For each x in CountArray %>
    			((No.of actions found/total no. of alerts) * 100)
    			<% num = FormatNumber((( x / (rs_total("numVar"))) * 100),2)%>
      			<param name="val<%=counterVar%>" value="<%=(num)%>">
    			<% counterVar = counterVar + 1 %>
    		<% Next %>
    	<% Next %>
    It will generate a piechart.. and this part is to part to get a value..
    Sometimes it will get the values.. but sometimes it will have an error 'Overflow'
    Any1 knows what happen?

    Thanx..

  • #2
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It can happen if the number is too large for an integer. Try converting your numbers to CLng

  • #3
    New Coder
    Join Date
    Jan 2005
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts
    o.. but this will only happens if i do not have a value...

  • #4
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Then put in a condition only to perform the formula when there is a vaild value.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •