This is probably a simple question for the PROs here but .....
How can you take the results from b0=pinsB and use them in the EEPROM command?
Example:
REM Read B.0-B.3 and store into EEPROM memory
SYMBOL ETX = 3 REM End Of Text
SYMBOL SwitchPositions = b0
SwitchPositions = pinsB & %00001111
EEPROM 0,(SwitchPositions, ETX)
------- SYNTAX ERRORS ------------
EEPROM 0,(SwitchPositions, ETX)
^
Error: Syntax error in this line!
-------------------------------------
If I replace SwitchPositions with 15, it works fine.
Thanks in advance for any help.
How can you take the results from b0=pinsB and use them in the EEPROM command?
Example:
REM Read B.0-B.3 and store into EEPROM memory
SYMBOL ETX = 3 REM End Of Text
SYMBOL SwitchPositions = b0
SwitchPositions = pinsB & %00001111
EEPROM 0,(SwitchPositions, ETX)
------- SYNTAX ERRORS ------------
EEPROM 0,(SwitchPositions, ETX)
^
Error: Syntax error in this line!
-------------------------------------
If I replace SwitchPositions with 15, it works fine.
Thanks in advance for any help.