Bug? [B4A] [B4J] Conditional compile in Sub documentation omits preceding text

Discussion in 'Bugs & wishlist' started by walt61, Nov 10, 2018 at 10:26 PM.

Tags:
  1. walt61

    walt61 Active Member Licensed User

    With this code:

    Code:
    'line1
    'line2
    #If B4A then
    'line3
    #End If
    'line4
    'line5
    Sub MySub
    End Sub
    the only help that seems to be displayed in the IDE is as of line4; it happens with both B4A and B4J.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You will need to write it like this:

    Code:
    #if B4A
    'line1
    'line2
    'line3
    'line4
    'line5
    Sub MySub
    #else if B4J
    'line1
    'line2
    'line4
    'line5
    Sub MySub
    #endif

    End Sub
    Comments are removed before compilation. They don't behave like regular code.
     
    walt61 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice