Select case function


Results 1 to 17 of 17

Threaded View

  1. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Select case function

    just need to keep ONE GoTo P @ the end of your Select case's after the End Select

    your syntax is " not so good "

    Code:
    ' prevent duplicate
    
    IF PORTC = 1 THEN
        TTLADD = 0 
    endif
    
    IF PORTC = 2 THEN 
       TTLADD = 128
    endif
    
    IF PORTC = 4 THEN 
       TTLADD = 384
    endif
    
    One more good reason to use " select case " ...

    I think you should read carefully the select case page of your Holy Manual ... ( not a C Compiler manual ... )
    Last edited by Acetronics2; - 14th February 2025 at 21:00.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Select Case Weirdness
    By rocket_troy in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th June 2014, 01:33
  2. Changing from If..Then to Select Case
    By BobK in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th March 2013, 12:06
  3. About Select Case
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th February 2010, 12:54
  4. Select case...Just wondering....
    By muddy0409 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th December 2006, 00:23
  5. Select Case
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th June 2005, 20:18

Members who have read this thread : 14

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