Problem using Else


Results 1 to 40 of 47

Threaded View

  1. #8


    Did you find this post helpful? Yes | No

    Default Colons & If

    The manual says:

    W2 = W0
    W0 = W1
    W1 = W2
    is the same as:
    W2 = W0 : W0 = W1 : W1 = W2

    So why wont this compile:
    IF mydata=%01010110 THEN: HIGH 7:else: low 7: ENDIF:PAUSE 50:GOTO loop
    ERROR Line 48: Bad expression. (Test(test mod2).pbp)

    I've even tried it as this :
    IF mydata=%01010110 THEN HIGH 7:else: low 7: ENDIF:PAUSE 50:GOTO loop

    Still no go
    I just started to try to use multi-line statements as suggested, sure would look better
    Last edited by tazntex; - 24th July 2008 at 19:23. Reason: Typing error

Similar Threads

  1. problem using GOSUB under interrupt
    By fobya71 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 5th March 2010, 19:52
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  4. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  5. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59

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