Shop OBEX P1 Docs P2 Docs Learn Events
Compiler error — Parallax Forums

Compiler error

SamTheManSamTheMan Posts: 43
edited 2009-05-26 15:04 in General Discussion
what is wrong in this:

Temp· var byte(10)
x var temp(0)

WKPND_B = x

I get this error "byte parameter expected "x""
Isn't X a byte?


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

Comments

  • BeanBean Posts: 8,129
    edited 2009-05-26 15:04
    x needs to be a simple BYTE variable. Not an array element.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
Sign In or Register to comment.