Toggle command


Results 1 to 14 of 14

Thread: Toggle command

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Toggle command

    Arrays with a variable index are evaluated at run-time to return/assign the value of that array location.

    Arrays with a constant index are evaluated at compile-time, and through "Constant Folding" is reduced to a scaler variable.
    As with any other scaler variable, it can be used as the start of an array.

    With a variable index, there's no way for the compiler to know you wanted the array location, instead of the value at that location.
    The language just doesn't allow for it.
    If the language was changed, it would break everyone's existing programs.
    Last edited by Darrel Taylor; - 16th December 2011 at 01:07.
    DT

Similar Threads

  1. My code for TV remote and MIBAM for RGB control
    By idtat in forum Code Examples
    Replies: 4
    Last Post: - 12th January 2013, 20:52
  2. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  3. toggle command w/ multiple switches
    By earltyso in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 15th February 2007, 17:47
  4. PIC16F88 problem with TOGGLE command?
    By russman613 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th September 2006, 23:31
  5. Can I do this???
    By noobie in forum mel PIC BASIC
    Replies: 2
    Last Post: - 10th June 2006, 18:57

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