Shop OBEX P1 Docs P2 Docs Learn Events
making a range of data and naming it — Parallax Forums

making a range of data and naming it

KewpieKewpie Posts: 13
edited 2004-08-25 01:09 in BASIC Stamp
Hi Guys,

Hope if anyone could help, is it possible to declare a range of data and name each range ?
eg. numbers from 1 to 20 is called monkey

In my case are gps data and naming them into areas

Thanx =)

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-08-24 06:40
    No, PBASIC does not accomodate sets.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • KewpieKewpie Posts: 13
    edited 2004-08-24 07:52
    I can't use IF...THEN statements ?
  • shandarshandar Posts: 12
    edited 2004-08-24 13:56
    why not use SELECT and CASE?
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-08-24 15:05
    Yes, you may use IF-THEN, or as Shandar pointed out, SELECT-CASE (which when implemented well can be very flexible).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • KewpieKewpie Posts: 13
    edited 2004-08-25 01:09
    So i could use SELECT CASE or IF THEN...

    After which i would need to send the acquired gps location and the area its in(which i will use IF THEN OR SELECT CASE) in sms.

    Okay Thanx !
    =)
Sign In or Register to comment.