Shop OBEX P1 Docs P2 Docs Learn Events
Array and matrix — Parallax Forums

Array and matrix

HoffaHoffa Posts: 46
edited 2006-08-28 17:35 in BASIC Stamp
Hi

Is it possible to make and array or even an matrix in basic stamp?

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2006-08-26 21:18
    Since it has a total of 26 bytes of ram, a small array, yes.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-08-26 21:28
    Hoffa -

    Here is the way you define an array (below), although any PBASIC variable will accept a subscript notation. That really gives you some power, once you get used to the language. Matrices must be done "artificially", but are rarely used due to the small RAM size.

    Array VAR BYTE(8)

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • Special_KSpecial_K Posts: 162
    edited 2006-08-28 17:35
    I got some array help here. Mabe it wil help you

    http://forums.parallax.com/showthread.php?p=592878
Sign In or Register to comment.