Name: Anonymous 2007-12-04 1:30
101, yeah, I know, I'm new at this.
The class is on QBASIC, and I'm trying to figure out why
WHILE INSTR(Move$, " ") > -1
A = INSTR(Move$, " ")
C = A + 1
B = A - 1
D = LEN(Move$)
LeftPart$ = LEFT$(Move$, (B))
RightPart$ = MID$(Move$, (B), (D - B))
Move$ = LeftPart$ + Right$
WEND
returns "ILLEGAL FUNCTION CALL" at the LeftPart$ line.
The class is on QBASIC, and I'm trying to figure out why
WHILE INSTR(Move$, " ") > -1
A = INSTR(Move$, " ")
C = A + 1
B = A - 1
D = LEN(Move$)
LeftPart$ = LEFT$(Move$, (B))
RightPart$ = MID$(Move$, (B), (D - B))
Move$ = LeftPart$ + Right$
WEND
returns "ILLEGAL FUNCTION CALL" at the LeftPart$ line.