More IF_THEN dumb questions.


Results 1 to 12 of 12

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Are those other have the same condition ?!?

    If so, some array can be usefull..
    Code:
         For Loop = 0 to 3
         SelectCase Loop
              Case 0
                   TempTestVar = MyInput
              Case 1
                   TempTestVar = Myinput1
              Case 2
                   TempTestVar = Myinput2
              Case 3
                   TempTestVar = Myinput3
         end select
    
         Select case TempTestVar
              ' cases stuff BUT 
              ' Relay1[Loop] = 1 or 0
              ' Relay2[Loop] = 1 or 0
         end select
         Next
    Once it's done do a loop for refresh each relay section... that's it
    Last edited by mister_e; - 22nd February 2005 at 18:38.
    Steve

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

Similar Threads

  1. Olympic Timer
    By Melanie in forum Code Examples
    Replies: 47
    Last Post: - 17th September 2008, 19:46
  2. Two quick (and elementary) questions.
    By scorpion990 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th June 2008, 23:03
  3. A few 12F683 questions
    By dhouston in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th May 2008, 03:54
  4. Usart Questions
    By shawn in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th March 2008, 01:17
  5. Still new to PicBasic - i2c questions
    By cometboy in forum mel PIC BASIC
    Replies: 4
    Last Post: - 13th November 2006, 18:27

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