I'm in the process of creating a program for NET SEND use. I'm trying to compare user input to one array. when looping through that array, I want to find a match, keep the index, and use that in another array.
in which I'm trying to keep compNum$ (the variable that is used in the NET SEND), but I'm having problems assigning the i% to it.
Code:
sizeOfArray = 4
checked$ = "TRUE"
DIM users$(sizeOfArray)
users$(1) = "Krause"
users$(2) = "Fig"
users$(3) = "Williams"
users$(4) = "Griffith"
DIM usersComp$(1 TO sizeOfArray)
usersComp$(1) = "12"
usersComp$(2) = "18"
usersComp$(3) = "19"
usersComp$(4) = "20"
validateUser:
FOR i% = 1 TO sizeOfArray
IF user$ = users$(i%) THEN
compNum$ = usersComp$(i%)
checked$ = "TRUE"
ELSE
checked$ = "FALSE"
END IF
NEXT i%
in which I'm trying to keep compNum$ (the variable that is used in the NET SEND), but I'm having problems assigning the i% to it.