B4J Question b4j comment/uncomment issue

Discussion in 'B4J Questions' started by qsrtech, Jun 2, 2015.

  1. qsrtech

    qsrtech Active Member Licensed User

    there's seem to be a bug when commenting/uncommenting blocks of code sometimes.

    for example, take this code
    Code:
    Sub AppStart (Form1 As Form, Args() As String)
        
    'MainForm = Form1
        'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
        MainForm.Show
    End Sub
    now highlight and try to comment the 3 lines within the sub and this is what you get:
    Code:
    Sub AppStart (Form1 As Form, Args() As String)
        MainForm = Form1
        MainForm.RootPane.LoadLayout(
    "Layout1"'Load the layout file.
        MainForm.Show
    End Sub
    instead of what you should really get:
    Code:
    Sub AppStart (Form1 As Form, Args() As String)
        
    ''MainForm = Form1
        ''MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
        'MainForm.Show
    End Sub
    P.S. I'd look into b4a too since they are probably the same code base
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    This is by design. It either comments or uncomments the block of code based on state of the first line.
     
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