10-10-2005, 09:09 AM
10-12-2005, 03:05 AM
ummm, I get an error saying "subscript of out range".
10-12-2005, 05:59 AM
Quote:ummm, I get an error saying "subscript of out range".Antoni said that the code might need some debugging, so get in there and find out why you get that error.
*****
10-12-2005, 06:18 AM
I know why, but I don't truly know what it would affect if I changed it. One of the arrays is being given more numbers than it can hold. Well...that's what I think anyway.
10-12-2005, 07:11 AM
Which array is given more numbers?
*****
*****
10-12-2005, 07:46 AM
Well, for one, line 65 and another is line 92. I don't know how to go about fixing it. However I think that's what the error means.
10-13-2005, 07:34 AM
What immediately sticks out to me is that you declare all of your arrays as integers, but then try to call them as singles:
solution: remove all of the % from the declaration and add DEFINT A-Z on the top of the program
^^Ok this is bugging me, how the hell do I get these quote and bold markers to work?
Quote:DIM ENTRY1%(1 TO 10)...
Quote:IF ENTRY1(X) = 1 THEN ONES = ONES + 1
solution: remove all of the % from the declaration and add DEFINT A-Z on the top of the program
^^Ok this is bugging me, how the hell do I get these quote and bold markers to work?
10-13-2005, 08:10 AM
I wanted only integers allowed, but whatever.....ok. To be honest, this was the first time using % as well. I'm used to the simple "INT".
Anonymous
10-13-2005, 09:44 AM
Quote:What immediately sticks out to me is that you declare all of your arrays as integers, but then try to call them as singles:
Quote:DIM ENTRY1%(1 TO 10)...
Quote:IF ENTRY1(X) = 1 THEN ONES = ONES + 1
solution: remove all of the % from the declaration and add DEFINT A-Z on the top of the program
^^Ok this is bugging me, how the hell do I get these quote and bold markers to work?
maybe uncheck "Disable BBCode in this post" ... it should be right
below the text area you type into to make a post.
10-13-2005, 07:08 PM
Well then that it probably the problem, you have to use % everywhere that you call the array, or else it thinks you are calling something else and will give you an out of range error.