Who here is VERY good at troubleshooting QB programs? - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html) +--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html) +--- Thread: Who here is VERY good at troubleshooting QB programs? (/thread-8188.html) |
Who here is VERY good at troubleshooting QB programs? - Agamemnus - 10-10-2005 Well.... it's there... Who here is VERY good at troubleshooting QB programs? - Liquid Snake - 10-12-2005 ummm, I get an error saying "subscript of out range". Who here is VERY good at troubleshooting QB programs? - Moneo - 10-12-2005 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. ***** Who here is VERY good at troubleshooting QB programs? - Liquid Snake - 10-12-2005 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. Who here is VERY good at troubleshooting QB programs? - Moneo - 10-12-2005 Which array is given more numbers? ***** Who here is VERY good at troubleshooting QB programs? - Liquid Snake - 10-12-2005 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. Who here is VERY good at troubleshooting QB programs? - wallace - 10-13-2005 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? Who here is VERY good at troubleshooting QB programs? - Liquid Snake - 10-13-2005 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". Who here is VERY good at troubleshooting QB programs? - Anonymous - 10-13-2005 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: maybe uncheck "Disable BBCode in this post" ... it should be right below the text area you type into to make a post. Who here is VERY good at troubleshooting QB programs? - wallace - 10-13-2005 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. |