John West wrote:
The LCD code in question is at
https://github.com/beneater/msbasic/blob/master/lcd.s. At the end of his latest video (
https://www.youtube.com/watch?v=gOwi2p1pzVM) he does talk about changing LCDPRINT to take a string instead of a number, and it looks like he's done that in this version of the code.
You've got two options: return LCDPRINT to its original state (which expects a number), or use the new string-taking LCDPRINT. I haven't tried it, but it looks very much like it will work the same as the fake example at the end of the video. So
Code:
LCDPRINT "Hello world!"
will print "Hello world!". You should be able to use any string expression, including string variables. So maybe (it has been a very long time since I've used Microsoft BASIC)
Code:
A$ = "Hello"
B$ = "world!"
LCDPRINT A$+" "+B$
Hi, thanks for your reply.
I tried both those and both give me the ?Syntax Error.
So, I know what should work, but it appears not to. Seems odd to me that Ben has his video, points to the GH code, but its different and doesnt work. Well, at least for me. I dont know right now if that code should work, or if I've messed something up.
Edit: just noticed that your second example actually displays "W" on the LCD!!