Putting values into an array


Closed Thread
Results 1 to 5 of 5

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Hi Vince,

    There's probably a dozen different ways to do this. Here's 1 of them.
    Ignore this... See second post below
    Code:
    For x = 0 to 31
       Lookup x,[0,1,0,1,1,1,1,0,1,1,1,1,1,0,0,1 ,1,1,1,0,1,1,1,1,0,0,0,1,0,0,0,0], CLAR[x] 
    Next x
    Also, the original example has 1 too many numbers for a 32 byte array.

    HTH,
    Darrel Taylor
    Last edited by Darrel Taylor; - 2nd December 2003 at 05:38.

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. Simple Array Demo
    By Archangel in forum Code Examples
    Replies: 5
    Last Post: - 15th February 2010, 04:46
  3. Array values changing
    By MyBuddy in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th October 2009, 23:13
  4. Funny PULSIN values: what is going on???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th April 2008, 08:02
  5. Reading Array values into variables
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 21st March 2005, 10: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