Bug? Error detected with remote compile

Discussion in 'iOS Bugs & Wishlist' started by Derek Johnson, Jul 9, 2015.

  1. Derek Johnson

    Derek Johnson Active Member Licensed User

    I'm getting several errors detected with the remote compile that are not being caught locally.

    Can you help with this please? Is there a way to relate the Java line number to the Basic line number?

    (Other modules compile OK).

    Derek

     
  2. Derek Johnson

    Derek Johnson Active Member Licensed User

    Here's some code that shows the issue

    Code:
    Sub test

        
    Dim result As Map
       
            
    Select Case "ABC"
            
    Case "A"
                
    For Each key As String In result.Keys
                    
    'Log (key & " = " & result.Get(key))
                Next   
                
    Return True
               
            
    Case "B"
                
    Return False

            
    End Select

        
    Return True
    End Sub
     
    Last edited: Jul 9, 2015
  3. Erel

    Erel Administrator Staff Member Licensed User

    I see it too. It is a bug related to the combination of the select case and the for each block. It will be fixed.

    For now you can workaround it with a "dummy" if block:
    Code:
    If True Then
        
    For Each key As String In result.Keys
        
    'Log (key & " = " & result.Get(key))
        Next   
        
    Return True
     
    End If
     
    Derek Johnson likes this.
  4. abhishek007p

    abhishek007p Active Member Licensed User

    Which B4I version you are using ?
     
  5. Derek Johnson

    Derek Johnson Active Member Licensed User

    B
    B4I Vers 2.00
     
Loading...