Error messge
Archiver
Posts: 46,084
Hi group, can someone help please, I'm trying to run a basic stamp
program in the basic stamp manual v2.0. #5 BASIC Stamp Command
Reference-DEBUG, p101.
x var word
x=-65
debug "Signed:",SDEC x,"",ISHEX x,"",ISBIN x, CR
debug "Unsigned:,"DEC x,"",IHEX x,"",IBIN x
I get an error code that says "expected character($)" on the
quotation marks just before the ISHEX command , any help on this will
be taken seriously, and you will be rewarded with my sincere
gratitude and thanks.
program in the basic stamp manual v2.0. #5 BASIC Stamp Command
Reference-DEBUG, p101.
x var word
x=-65
debug "Signed:",SDEC x,"",ISHEX x,"",ISBIN x, CR
debug "Unsigned:,"DEC x,"",IHEX x,"",IBIN x
I get an error code that says "expected character($)" on the
quotation marks just before the ISHEX command , any help on this will
be taken seriously, and you will be rewarded with my sincere
gratitude and thanks.
Comments
from the manual and was OK. Here's what I used:
x VAR WORD
x = -65
DEBUG "Signed: ", SDEC x, " ", ISHEX x, " ", ISBIN x, CR
DEBUG "Unsigned: ", DEC x, " ", IHEX x, " ", IBIN x
HTH,
Leroy
Hi group, can someone help please, I'm trying to run a basic stamp
program in the basic stamp manual v2.0. #5 BASIC Stamp Command
Reference-DEBUG, p101.
x var word
x=-65
debug "Signed:",SDEC x,"",ISHEX x,"",ISBIN x, CR
debug "Unsigned:,"DEC x,"",IHEX x,"",IBIN x
I get an error code that says "expected character($)" on the
quotation marks just before the ISHEX command , any help on this will
be taken seriously, and you will be rewarded with my sincere
gratitude and thanks.
the error "expected character($)" does tell you what the problem is -
although it may not jump out at you :-) The editor is expecting to
see a character to be displayed. The way you have typed it, there is
nothing between the 2 quotation marks. The Editor is confused by the
fact you have provided quotation marks as if you want to display
characters, but have not provided any.
I have not checked the original text in the manual, but I suggest you
missed the space between the 2 quotation marks.
Also, in the second debug line you have "Unsigned:,"DEC
this should be "Unsigned:", DEC , You have the second quotation mark
on the wrong side of the comma.
Cheers
Col
--- In basicstamps@y..., "stan1k1" <stan1k1@y...> wrote:
> Hi group, can someone help please, I'm trying to run a basic stamp
> program in the basic stamp manual v2.0. #5 BASIC Stamp Command
> Reference-DEBUG, p101.
> x var word
> x=-65
> debug "Signed:",SDEC x,"",ISHEX x,"",ISBIN x, CR
> debug "Unsigned:,"DEC x,"",IHEX x,"",IBIN x
> I get an error code that says "expected character($)" on the
> quotation marks just before the ISHEX command , any help on this
will
> be taken seriously, and you will be rewarded with my sincere
> gratitude and thanks.