String arrays


Closed Thread
Results 1 to 4 of 4

Thread: String arrays

  1. #1
    moisture's Avatar
    moisture Guest

    Default String arrays

    Hi All, In PBPro I would like to set and array equal to a string then send that array out the serial port with Hserout [STR array\arraysize,$0D].

    Currently the only way I know how is array(0) = 'H', array(1) = "O" etc.
    How do I automate this? so I can call a routine, pass the string and have it stick it in the array for me?

    Cheers,

    Pat.

  2. #2
    Join Date
    Oct 2005
    Posts
    34


    Did you find this post helpful? Yes | No

    Wink Thats It

    There is no other way to handle strings in PBP

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by moisture View Post
    Hi All, In PBPro I would like to set and array equal to a string then send that array out the serial port with Hserout [STR array\arraysize,$0D].

    Currently the only way I know how is array(0) = 'H', array(1) = "O" etc.
    How do I automate this? so I can call a routine, pass the string and have it stick it in the array for me?

    Cheers,

    Pat.
    Where does your string come from?
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  4. #4
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    Are you looking for something like this??

    Code:
    prn_SetDate:       PokeCode "Date changed",0
    prn_SetTime:       PokeCode "Time changed",0
    prn_LogPrinted:    PokeCode "Log printed",0
    These strings are in program space.

Similar Threads

  1. How about String Variables?
    By mytekcontrols in forum PBP Wish List
    Replies: 40
    Last Post: - 20th January 2015, 12:53
  2. How to convert HEX Value as formatted BIN String ?
    By Robson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th August 2007, 02:16
  3. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39
  4. String Parsing
    By eoasap in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th February 2006, 17:20
  5. Message String Table using Readcode
    By mytekcontrols in forum Code Examples
    Replies: 2
    Last Post: - 10th July 2005, 23:17

Members who have read this thread : 2

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