Variable in array


Results 1 to 6 of 6

Threaded View

  1. #5
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    To my understanding these two codes should be as equal as possible. One is using a constant, the other variable (i).
    Code:
        Lcd_SDA = FC.0(7) : Lcd_CLK = 1 : Lcd_CLK = 0
    Code:
        i=7 : Lcd_SDA = FC.0(i) : Lcd_CLK = 1 : Lcd_CLK = 0
    This extra operation i=7 shouldn't be a problem if arrays support variable(s).

    -Gusse-
    Last edited by Gusse; - 18th February 2009 at 19:31.

Similar Threads

  1. EEPROM Variables (EE_Vars.pbp)
    By Darrel Taylor in forum Code Examples
    Replies: 79
    Last Post: - 26th October 2012, 00:06
  2. Simple Array Demo
    By Archangel in forum Code Examples
    Replies: 5
    Last Post: - 15th February 2010, 04:46
  3. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  4. 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
  5. display lcd variable array Ascii
    By volcane in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd November 2005, 21:36

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