FineLineIDE


Closed Thread
Results 1 to 40 of 188

Thread: FineLineIDE

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Re: FineLineIDE

    Norm, I cut/pasted some of Mackrackit's code for a ConnectOne WiFi module into FineLine and see something I can't figure out as shown in this code snippet:
    DIP:
    IF !ADR[1] AND !ADR[1] AND !ADR[2] AND !ADR[3]THEN SEROUT2 PORTC.3,16780,[" NOT "]
    SEROUT2 PORTC.3,16780,[" CONNECTED ",$d,$a]
    SEROUT2 PORTC.3,16780,["ADR - " ,DEC3 ADR[0],".",DEC3 ADR[1],".",DEC3 ADR[2],".",DEC3 ADR[3],$d,$a] PAUSE 1000
    RETURN
    The actual code listing in FineLine shows a red "0" at the beginning of the IF statement line. I tried to delete it and it won't delete. What is this red "0" signifying or trying to tell me?

  2. #2
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: FineLineIDE

    Quote Originally Posted by jellis00 View Post
    Norm, I cut/pasted some of Mackrackit's code for a ConnectOne WiFi module into FineLine and see something I can't figure out as shown in this code snippet:

    The actual code listing in FineLine shows a red "0" at the beginning of the IF statement line. I tried to delete it and it won't delete. What is this red "0" signifying or trying to tell me?
    The red "O" is for orphan.
    FineLine is telling you a corresponding Endif is missing.
    See screenshot in previous post.

    Norm
    Last edited by Normnet; - 11th July 2011 at 04:23. Reason: Changed screenshot

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: FineLineIDE

    Norm,
    In your screenshot the ENDIF is missing but in the code snippet Jellis posted it's not missing since the IF statement is a "one-liner"
    Code:
    IF !ADR[1] AND !ADR[1] AND !ADR[2] AND !ADR[3]THEN SEROUT2 PORTC.3,16780,[" NOT "]
    /Henrik.

  4. #4
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: FineLineIDE

    Quote Originally Posted by HenrikOlsson View Post
    Norm,
    In your screenshot the ENDIF is missing but in the code snippet Jellis posted it's not missing since the IF statement is a "one-liner"
    Code:
    IF !ADR[1] AND !ADR[1] AND !ADR[2] AND !ADR[3]THEN SEROUT2 PORTC.3,16780,[" NOT "]
    /Henrik.
    PBP V2.50C gives the following error:
    Compiler: Error[Line XXX]: If without a matching ENDIF.

    Norm

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: FineLineIDE

    Hi Norm,

    Really? That's a surprise....It compiles without error here (on v2.44):

    Name:  Screenshot.JPG
Views: 7568
Size:  74.5 KB

    Weird... I'll try it on 2.6 tonight.

    /Henrik.


  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: FineLineIDE

    I did that before FL. It does work with PBP 2.6.
    I just tried it with FL and got the "O", but it compiled..
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: FineLineIDE

    Quote Originally Posted by mackrackit View Post
    I did that before FL. It does work with PBP 2.6.
    I just tried it with FL and got the "O", but it compiled..
    I'll fix it for the next version of FL.
    A workaround is to keep a space in front of the "Then".


    Norm

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