New to this, Need some starter help


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Yep all is going well now, except for the if then else things. IT keeps telling me that i have a 'then' not preceeded by an if. Also 'else' not proceeded by an if or a then.

    I suppose A little more study will be required to figure this one out.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by power_speed View Post
    Yep all is going well now, except for the if then else things. IT keeps telling me that i have a 'then' not preceeded by an if. Also 'else' not proceeded by an if or a then.

    I suppose A little more study will be required to figure this one out.
    Well then, try this:

    IF you post your code THEN
    somebody around here might be able to help you
    ELSE
    nobody will be able to figure out what you're trying to do
    ENDIF

  3. #3


    Did you find this post helpful? Yes | No

    Default

    I figured out the if then else thing. The manual listed the else on the same line as the if. That is how I put it. Moved the then to the next line and all is well.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by power_speed View Post
    I figured out the if then else thing. The manual listed the else on the same line as the if. That is how I put it. Moved the then to the next line and all is well.
    What page? What section listed it that way?

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    What page? What section listed it that way?
    Disregard that... You were probably looking at pages that weren't DESCRIBING the IF/THEN/ELSE/ENDIF structure, but were only mentioning it in passing.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    PIC Basic Pro compiler manual. It was page 89 section 5.36.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by power_speed View Post
    PIC Basic Pro compiler manual. It was page 89 section 5.36.
    That's what I was talking about...
    On that page, in the examples, ELSE is always on the line following the THEN.
    I figured you might have been looking at page 1 or page 39.

Similar Threads

  1. PBP and Lassen SQ GPS
    By Ron Marcus in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 2nd July 2012, 16:00
  2. Replies: 4
    Last Post: - 3rd February 2010, 01:47
  3. Replies: 11
    Last Post: - 19th August 2009, 15:23
  4. Remote Car Starter Safety
    By CocaColaKid in forum General
    Replies: 8
    Last Post: - 22nd November 2005, 09:10

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