Shop OBEX P1 Docs P2 Docs Learn Events
Variable names — Parallax Forums

Variable names

dk_akjdk_akj Posts: 37
edited 2004-08-13 05:21 in BASIC Stamp
Hi,

Maybe a stupid question but here it comes.....

Does this:
MyTemporaryVariable·· Var··· Byte

use more momory than:
MTV·· Var··· Byte

??

Regards
Akj
·

Comments

  • NewzedNewzed Posts: 2,503
    edited 2004-08-12 19:23
    No.· Regardless of the variable name it only takes space according to what you assign it - word, byte, nibble or bit.· I think the name of a variable is limited to 16 characters.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    USB-powered Stamp Board

    http://hometown.aol.com/newzed/index.html
    ·
  • Tom WalkerTom Walker Posts: 509
    edited 2004-08-12 19:24
    All together..."There's no such thing as a stupid question" <g>

    These two statements should take up the same amount of space. I'll leave the subject of compilers, tokens, symbol tables, etc. as an exercise for the reader <g>, but suffice it to say that both lines just tell the compiler to set aside a byte of space to be used later.

    HTH

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I used to be different, but now I'm the same...
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-08-12 20:12
    Symbol names (variables, constants, and program labels) may be up to 32 characters long.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • dk_akjdk_akj Posts: 37
    edited 2004-08-13 05:21
    Everybody,

    Thanks for the answers.

    Regards
    akj
Sign In or Register to comment.