Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 18:01 24 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Problem in one of cracherjack’s programme

Author Message
larny
Guru

Joined: 31/10/2011
Location: Australia
Posts: 346
Posted: 06:17am 26 Nov 2011
Copy link to clipboard 
Print this post

I tried to run crackerjack's bitwise programme but the following error message appeared:-

"Line 50 unknown command"

Line 50 is:-

50 ? "Original Decimal: ";V:? "Shift: ";S;" place."

I am just starting to learn MMBasic & I can't see what is wrong with this line.

As I understand it:-

? = PRINT

; suppresses the line feed/carriage return

: separates expressions

Any assistance will be appreciated.

Len

Edited by larny 2011-11-27
 
BobDevries

Senior Member

Joined: 08/06/2011
Location: Australia
Posts: 266
Posted: 06:25am 26 Nov 2011
Copy link to clipboard 
Print this post

Len,

be sure that there's a SPACE between the ? and the following text.


50 ? "original Decimal: ";V:? "Shift: ";S;" place."
----^
-----------------------------^


Regards,
Bob Devries
Dalby, QLD, Australia
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 06:27am 26 Nov 2011
Copy link to clipboard 
Print this post

Hi


50 ? "Original Decimal: ";V:? "Shift: ";S;" place."

Try this

50 ? "Original Decimal: ";V : ? "Shift: ";S;" place."

This works for me

> run
Original Decimal: 0
Shift: 0 place. 0
> list
50 ? "Original Decimal: ";V : ? "Shift: ";S;" place."new
>

Jman
 
larny
Guru

Joined: 31/10/2011
Location: Australia
Posts: 346
Posted: 06:43am 26 Nov 2011
Copy link to clipboard 
Print this post

That was quick.

Thanks for the replies, I'll try it later this evening.

Len
 
crackerjack

Senior Member

Joined: 11/07/2011
Location: Australia
Posts: 164
Posted: 06:47am 26 Nov 2011
Copy link to clipboard 
Print this post

Oops. That would be me. Follow jman's good advice.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024