Help with arrays & strings


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2004
    Posts
    81

    Default Help with arrays & strings

    Hi,

    I want to know if there is an easy way to do this: The shor version is I need to store string data in an array.. This works:

    MsgBuff[0] = "C"
    MsgBuff[1] = "A"
    MsgBuff[2] = "L"
    MsgBuff[3] = "I"
    MsgBuff[4] = "B"
    MsgBuff[5] = "R"
    MsgBuff[6] = "A"
    MsgBuff[7] = "T"
    MsgBuff[8] = "E"
    MsgBuff[9] = " "

    But is a pain... Is there anyway to assign the array values all at once? (ie: MesgBuff[]="CALIBRATE "

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Previously discussed - if you searched on "strings" example...

    http://www.picbasic.co.uk/forum/show...hlight=strings

    You can always preset your strings in internal or external EEPROM and load them from there, or preset them into Program Space (see making Program Space your Playground - search on keyword "Playground").

  3. #3
    Join Date
    May 2004
    Posts
    81


    Did you find this post helpful? Yes | No

    Lightbulb Thanks

    I guess that will have to go on the "wish list" then... I'll look into that EEPROM idea... I am using a PIC1684A and not much EEPROM space.. In the mean time I decided to just shove everything into a look up table.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Parsing Strings...
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 15th February 2009, 04:13
  3. Beginner trying to use arrays
    By captain in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 3rd November 2007, 07:20
  4. Processing lengthy strings
    By sougata in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st March 2006, 05:27
  5. I2CWRITE writing Strings to EEPROM
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th March 2005, 19:45

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts