Page 1 of 1

Type MisMatch Error?

Posted: Wed Sep 26, 2012 2:48 pm
by JasonQuinn1992
Why am I getting a type mismatch error on the following code? How do i fix it?

**************************************************************
REM The purpose of this program is to utilize The STRING$ Function
REM **************************************************************
REM
REM

CLS
LET WORD$ = "*"
LET COUNT = 2
DO WHILE COUNT <= LEN(WORD$)
REM
REM
REM

CLS
LET WORD$ = "*"
LET COUNT = 2
DO WHILE COUNT <= LEN(WORD$)
PRINT STRING$(WORD$, COUNT)
LET COUNT = COUNT + 1
LOOP
END
LET COUNT = COUNT + 1
LOOP
END


Im getting the error with this line: PRINT STRING$(WORD$, COUNT)...


Thanks, Jason

Posted: Fri Sep 28, 2012 12:59 am
by OPRESION
I THINK THE GOOD WAY WOULD BE THIS WAY:

PRINT STRING$(COUNT, WORD$)

Posted: Fri Sep 28, 2012 1:30 am
by JasonQuinn1992
Thanks for the replay, I tried your suggest and was able to get the program to run