Shop OBEX P1 Docs P2 Docs Learn Events
Programming Help — Parallax Forums

Programming Help

Shabbir EzziShabbir Ezzi Posts: 7
edited 2009-11-04 20:23 in Propeller 1
Is it possible to create an array containing text. I am trying to generate Menu for LCD screen which is 4x20.. The user will have an option to cycle through the menus which have 10 items, but only 4 will shown on the LCD at any given time...

Thanks for your help in advance.

Comments

  • lonesocklonesock Posts: 917
    edited 2009-11-04 17:57
    PUB get_string_ptr( word_index ) : p
      if (word_index > -1) and (word_index < NumTemplates)
        p := @@strTable[noparse][[/noparse]word_index]
    
    DAT
    strUp         byte "up",0
    strDown       byte "down",0
    strLeft       byte "left",0
    strRight      byte "right",0
    strYes        byte "yes",0
    strNo         byte "no",0
    strEels       byte "eels",0
    strTable      word @strUp, @strDown, @strLeft, @strRight, @strYes, @strNo, @strEels
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lonesock
    Piranha are people too.
  • hover1hover1 Posts: 1,929
    edited 2009-11-04 18:02
    LOL!!·· I have "No eels allowed" painted on my crafts. Most people don't get it.
    lonesock said...
    strEels       byte "eels",0
    

  • Shabbir EzziShabbir Ezzi Posts: 7
    edited 2009-11-04 20:23
    That should work great...

    thanks,
    shabbir
Sign In or Register to comment.