Shop OBEX P1 Docs P2 Docs Learn Events
Arrays using PBASIC for the SX — Parallax Forums

Arrays using PBASIC for the SX

mejor99mejor99 Posts: 3
edited 2008-03-12 17:15 in General Discussion
Does anyone know how to create arrays using PBASIC for the SX microcontroller??
I know how to do it with assembly but would like to do it with PBASIC!
thanks
-Jose
·

Comments

  • BeanBean Posts: 8,129
    edited 2008-03-12 17:15
    Jose,
    I assume you mean SX/B ?
    You just put the array size in parens like this:

    myArray VAR BYTE(10) ' This is an array of 10 elements myArray(0) to myArray(9)

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
Sign In or Register to comment.