Cannot Declare SYMBOL - please help - simple question
hiren97
Posts: 9
Hi,
I am trying to declare one variable by
' {$STAMP BS2}
' {$PBASIC 2.5}
SYMBOL day = 8
SYMBOL night = 4
editor highlists SYMBOL and says "Lable is mising ":" "
I need to present project by tuesday..please hurry...
I have basic stamp kit BS2 ....and writing traffic signal program...pleaase help...
Hiren Patel
hiren97@yahoo.com
I am trying to declare one variable by
' {$STAMP BS2}
' {$PBASIC 2.5}
SYMBOL day = 8
SYMBOL night = 4
editor highlists SYMBOL and says "Lable is mising ":" "
I need to present project by tuesday..please hurry...
I have basic stamp kit BS2 ....and writing traffic signal program...pleaase help...
Hiren Patel
hiren97@yahoo.com
Comments
Just remove it and change the "=" to "CON" as shown in the manual.
In other words, you would have:
Don't forget to use "xxx VAR BYTE" to declare byte variables, etc.
day = 5
works..thank you...
CON don't...
thanls anywayz mike
Continuing with your example:
day VAR BYTE
five CON 5
day = five
should work fine.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔