A lil help :-)
Root / Programming Questions / [.]
Jacklack3Created:
So you're trying to make basic more basic?
Say is in my interpreter as 'print'
What are the values of ALARM and ANOT$? There would be a type mismatch error because ALARM is a real/int type(depending on the OPTION) as it doesn't have a type suffix and ANOT$ is a string as it has the $ suffix.For some reason im getting a error called Type mismatch in (blah) Im using a repeat and until command UNTIL ALARM==ANOT$ is what its saying i mistyped i guess.DEF SAY TEXT$ PRINT TEXT$ END '--- SAY "HELLO!"That's the gist of it.
Well it plays a alarm sound and it basically loops and it stops looping when the amount of alarms playing was the number you inputed. So as a example i put 1 so it would play a alar noise. It works but then the error occurs.What are the values of ALARM and ANOT$? There would be a type mismatch error because ALARM is a real/int type(depending on the OPTION) as it doesn't have a type suffix and ANOT$ is a string as it has the $ suffix.For some reason im getting a error called Type mismatch in (blah) Im using a repeat and until command UNTIL ALARM==ANOT$ is what its saying i mistyped i guess.DEF SAY TEXT$ PRINT TEXT$ END '--- SAY "HELLO!"That's the gist of it.
The string "1" is not equal to the number 1. You need to convert to a number with the VAR() function. Change it to UNTIL ALARM==VAL(ANOT$) and it should work.Well it plays a alarm sound and it basically loops and it stops looping when the amount of alarms playing was the number you inputed. So as a example i put 1 so it would play a alar noise. It works but then the error occurs.What are the values of ALARM and ANOT$? There would be a type mismatch error because ALARM is a real/int type(depending on the OPTION) as it doesn't have a type suffix and ANOT$ is a string as it has the $ suffix.For some reason im getting a error called Type mismatch in (blah) Im using a repeat and until command UNTIL ALARM==ANOT$ is what its saying i mistyped i guess.DEF SAY TEXT$ PRINT TEXT$ END '--- SAY "HELLO!"That's the gist of it.