Shop OBEX P1 Docs P2 Docs Learn Events
constant CON "string" not working — Parallax Forums

constant CON "string" not working

Huge DemuxHuge Demux Posts: 5
edited 2004-12-18 14:09 in BASIC Stamp
Hi!
I was under the impression that since:

clear CON "c"

passes the syntax check, then:

memwrite CON "mw"

would also, but it turns out that I can only declare single letter strings as constants....

isn't it weird? Or am I missing something? So should I use DATA instead of CON?
·

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-18 14:09
    Since there is no string type, string constants are not allowed. You can store strings in a DATA statement and deal with them one character at a time.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.