PBP Editor Wish List:


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    MyArray[0]="String" will never work as each index must be a byte. but

    MyArray var byte[20]

    MyArray="String"

    could be interesting. But as i don't really use array for string but prefer the 'embedded string in your code space' style or using an external eeprom... i can't see any benefit of... but maybe if

    MyArray var byte[20]
    Array2 var byte[20]

    MyArray="Hello"

    '
    '
    '
    '
    '
    Hserin [STR Array2\20\13]
    If array2=Myarray then DoSomething

    now we talk of something easy to write and understand... usefull... yeas, no, toaster, hamburger... depending the way you think.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    blainecf's Avatar
    blainecf Guest


    Did you find this post helpful? Yes | No

    Default String assignments to arrays

    Has anyone written assembler functions that would stuff strings into arrays?

    If someone would give me the basics of it, I'd love to write a set of low-level string functions for manipulating strings withing PBP arrays. Someone please help me get to first base and I'll run with it, posting the results as I go !

    Just show me how to accomplish: MyArray = "Hi Blaine" via something like:

    call stringassign MyArray, "Hi Blaine"

    Then I'll try to write corresponding functions for mid, left, right, and concatenation. We'll debate, refine, and GO FORWARD CONQUERING!

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    you can play around the 'embedded string in your code space' stuff
    http://www.pbpgroup.com/modules/wfse...p?articleid=10

    just change the StringOut subroutine to send value to an array instead of sending it with HSEROUT.

    it's still far of what you need but have a look at different method...take your time to read from the begining'till the end. You need the use of Macro.. there's few example in and there
    http://www.picbasic.co.uk/forum/show...rings+embedded

    and now we are far of the original topic
    Last edited by mister_e; - 12th July 2006 at 21:26.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. PBP List file???
    By MOUNTAIN747 in forum General
    Replies: 2
    Last Post: - 28th February 2010, 19:48
  3. List of instructions used in PBP ?
    By AndrewC in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd November 2007, 11:22
  4. PBP wish list.....
    By muddy0409 in forum PBP Wish List
    Replies: 7
    Last Post: - 21st November 2005, 09:51
  5. PBP Wish List
    By Radiance in forum PBP Wish List
    Replies: 5
    Last Post: - 1st February 2005, 17:30

Members who have read this thread : 0

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