Store Strings


Closed Thread
Results 1 to 3 of 3

Thread: Store Strings

  1. #1
    Join Date
    Oct 2007
    Posts
    21

    Default Store Strings

    How can I store a string variable?

    Like I want to do somethign like this ( but i dont know the code)

    A= "Hello World" 'Store String
    SEROUT LCD, 6, [A] ' dispaly contents of string A on LCD



    Thanks,
    Eric

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Here's a place to start ...

    Embedded Strings in your Code Space
    http://www.picbasic.co.uk/forum/showthread.php?t=1999
    <br>
    DT

  3. #3


    Did you find this post helpful? Yes | No

    Default Simpler string storage

    You can't handle strings with a single character.
    Darrel's system for storing strings in code space is great but you can also put the string into EEROM for example....

    A var byte
    I var byte

    DATA @0, "Hello World", 13, 10 ' This writes the EEROM at code load time.

    For I = 0 to 15
    read I,A
    serout pin, mode, [A] 'Check the syntax, I don't have MCS+ open at the moment
    Next I

    HTH
    Brian

Similar Threads

  1. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  2. eeprom how many data can store
    By DragonBall_6 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 5th December 2006, 11:39
  3. Long varible strings
    By flashg in forum Serial
    Replies: 0
    Last Post: - 14th October 2006, 04:40
  4. Using EEPROM to store variables...
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 6th April 2005, 15:51
  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