10-31-2005, 05:59 AM
If it's not doing exactly what you want, sounds like you're gonna have to walk through the code to see what it's doing and maybe make adjustments.
*****
*****
Quote:in that case, let me ask a few quations on the coding.(1) There's only one GOTO used. That's in the the NUMBERS subroutine where it does a GOTO 1. The label 1 is in the subroutine HOME. This is a very bad practice. However, if this logic is working, leave it alone for now.
1. Why is "GOTO" used?
2. In "PICKED = I: nx(I) = 1" what is ":"
3. Is "flag" just a variable?
FOR I=1 TO 10
INPUT "ENTER THE NUMBERS FOR THIS FIRST ENTRY, EACH FOLLOWED BY A COMMA, EXCEPT FOR THE LAST ONE"; A, B, C, D, E, F, G, H, I, J
ENTRY(I,1) = A
ENTRY(I,2) = B
ENTRY(I,3) = C
ENTRY(I,4) = D
ENTRY(I,5) = E
ENTRY(I,6) = F
ENTRY(I,7) = G
ENTRY(I,8) = H
ENTRY(I,9) = I
ENTRY(I,10) = J
DO
INPUT "DO YOU WANT TO STOP?(Y/N)"; DONE$
IF (DONE$ = "Y") THEN GOTO 1
LOOP UNTIL DONE$ = "N"
NEXT
For I=1 To 10
Input "ENTER THE NUMBERS FOR THIS FIRST ENTRY, EACH FOLLOWED BY A COMMA, EXCEPT FOR THE LAST ONE"; A, B, C, D, E, F, G, H, I, J
ENTRY(I,1) = A
ENTRY(I,2) = B
ENTRY(I,3) = C
ENTRY(I,4) = D
ENTRY(I,5) = E
ENTRY(I,6) = F
ENTRY(I,7) = G
ENTRY(I,8) = H
ENTRY(I,9) = I
ENTRY(I,10) = J
Do
Input "DO YOU WANT TO STOP?(Y/N)"; DONE$
If (UCase$(DONE$) = "Y") Then Goto 1
Loop Until UCase$(DONE$) = "N"
Next
Quote:What's the error you are referring to?
When it says "Do you want to stop (Y/N)" do you normally enter a capital "N"? If you enter a small "n" it will just ignore it and do nothing.
*****
Quote:.....Do you mean where you ask for the 10 numbers separated by commas? I just tested that code entering numbers from 11 to 20, then printed them out. It works fine. Must be a problem later.
The error I'm referring to is that it won't take numbers higher than 10.
Quote:alright, well for me it won't allow me to input any number greater than 10 at the point where you enter the 10 numbers. I don't know why it works for you. Maybe it's the version of QB....I don't know.I can't help but think it's got something to do with your index variable, I, conflicting with the I in your input statement. Change your index variable to Z, or better, index.