B4J Question b4j comment/uncomment issue

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

Similar threads

B4J Tutorial Pagination Container
B4J Tutorial Accordion container
B4J Tutorial [B4X] Resumable Subs - Sleep / Wait For
B4J Tutorial SQL Tutorial
B4J Tutorial Unhandled exceptions
B4J Library [custom view] SearchView
  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...