Shop OBEX P1 Docs P2 Docs Learn Events
eeAddress = (month - 1) * 4 — Parallax Forums

eeAddress = (month - 1) * 4

ice-egozice-egoz Posts: 55
edited 2004-09-16 03:55 in BASIC Stamp
can i store {eeAddress = (month - 1) * 4} in another VAR and send it out?

SEROUT toModem,baud, [noparse][[/noparse]MonNames, eeAddress = (month - 1) * 4]
···
cos it shows a binay expected, ')'. So how am i able to display my number out thru the serout?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I need all ya guidance Masters. [noparse]:)[/noparse]

Comments

  • Tracy AllenTracy Allen Posts: 6,658
    edited 2004-09-13 18:02
    You can do that like this:

    SEROUT toModem,baud, [noparse][[/noparse]MonNames, (month - 1) * 4]
    



    or by putting it in a variable first:

    eeAddress = (month - 1) * 4
    SEROUT toModem,baud, [noparse][[/noparse]MonNames, eeAddress]
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • ice-egozice-egoz Posts: 55
    edited 2004-09-14 01:13
    eeaddress is a·VAR workValue. It will actually display the current year when in debug. But when i want to serout sms it wont display.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I need all ya guidance Masters. [noparse]:)[/noparse]
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-16 03:55
    That line of code points to the first character of a string. You must use a loop with READ to retrieve the characters, then send them with SEROUT.

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