Stupid array question


Results 1 to 14 of 14

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by paul borgmeier
    ..........or consider LOOKUP2 tables

    I also was going to suggest LOOKUP table but arrays can not be used with Lookup tables!
    Say there are 90 messages.


    Code:
    'This code is just a part of the idea to start from somewhere.
    
    
    Message     var byte[90]
    MessageTemp var byte
    Loop        var byte
    
    
    for loop = 0 to 89
        lookup loop,[$AA,$2C,$4D,.....................], MessageTemp
        message[loop]=messageTEMP
    
    next loop

    This way,

    Quote Originally Posted by RUBiksCUbe
    ........

    Can you do anything like that in PBP? It would make coding much easier, as opposed to going like this:
    message[0] = $AA
    message[1] = $2C
    message[2] = $4D

    and so on...


    can be achieved.


    ------------------------------------



    -------
    Last edited by sayzer; - 3rd September 2006 at 13:22.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. Simple Array Demo
    By Archangel in forum Code Examples
    Replies: 5
    Last Post: - 15th February 2010, 04:46
  2. Array Question....please help
    By jmoskalski in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st October 2009, 01:29
  3. Stupid question about LCDOUT
    By Glenn in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 7th October 2008, 21:37
  4. Stupid question
    By Meriachee in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 20th July 2007, 05:47
  5. How to saparate variable to array and GLCD Question
    By pramarn in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 4th October 2006, 03:42

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