Select Case syntax


Closed Thread
Results 1 to 3 of 3

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Hi Keith,

    I don't know if this is any better or not, but it's another way you might try.
    Code:
    <font color="#0000FF"><b><i>'             Type   0   1    2    3    4    5    6    7     8
    </i></b></font><font color="#008000"><b>LOOKDOWN2  </b></font><b>Header</b>,&lt;[<b>870</b>,<b>930</b>,<b>2200</b>,<b>2500</b>,<b>2800</b>,<b>7800</b>,<b>8800</b>,<b>9200</b>,<b>65535</b>],<b>Type
    
    </b><font color="#008000"><b>SELECT CASE </b></font><b>Type
        </b><font color="#008000"><b>CASE </b></font><b>0</b>,<b>2</b>,<b>5</b>,<b>8  </b>: <font color="#008000"><b>HSEROUT </b></font>[<font color="#FF0000">&quot;Something else&quot;</font>,<b>13</b>]
        <font color="#008000"><b>CASE </b></font><b>1   </b>: <font color="#008000"><b>HSEROUT </b></font>[<font color="#FF0000">&quot;RC5??&quot;</font>,<b>13</b>]
        <font color="#008000"><b>CASE </b></font><b>3   </b>: <font color="#008000"><b>HSEROUT </b></font>[<font color="#FF0000">&quot;Sony??&quot;</font>,<b>13</b>]
        <font color="#008000"><b>CASE </b></font><b>4   </b>: <font color="#008000"><b>HSEROUT </b></font>[<font color="#FF0000">&quot;RC6??&quot;</font>,<b>13</b>]
        <font color="#008000"><b>CASE </b></font><b>6   </b>: <font color="#008000"><b>HSEROUT </b></font>[<font color="#FF0000">&quot;Pioneer??&quot;</font>,<b>13</b>]
        <font color="#008000"><b>CASE </b></font><b>7   </b>: <font color="#008000"><b>HSEROUT </b></font>[<font color="#FF0000">&quot;NEC??&quot;</font>,<b>13</b>]
    <font color="#008000"><b>END SELECT</b></font>
    Last edited by Darrel Taylor; - 27th September 2005 at 20:00.
    DT

  2. #2
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Thanks Darrel,

    I think I might be able to do something with Lookdown2.

    Just had to lean over to the TV and MANUALLY turn the volume down. Currently surrounded by so many remote controls whilst testing that I couldnt see the one for the TV !

    Regards
    Keith

    www.diyha.co.uk
    www.kat5.tv

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 05:47
  2. Sony SIRC IR Issue
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th August 2015, 09:10
  3. Write Onewire data toa I2C memory / read ASCI
    By Eugeniu in forum mel PIC BASIC Pro
    Replies: 67
    Last Post: - 16th November 2008, 20:19
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 16:04
  5. Interrupt/timer not really interrupting...
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd May 2005, 23:05

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