Bug? incompatible Types

stevel05

Expert
Licensed User
Longtime User
The attached example app compiles under debug, but not under release. I get an incompatible type error.
 

Attachments

  • ILB.zip
    13.2 KB · Views: 264

stevel05

Expert
Licensed User
Longtime User
Thanks Erel,

The main concern here then is that the code actually compiles and runs correctly while in Debug.

To get the programming right, Pane doesn't have a GetAllViewsRecursive method, or it's not exposed to B4J, it could be worth adding it.

In the meantime I have written my own, I am not particularly familiar with JavaFX, could you check this routine and tell me if there is anything obvious that it may miss.

Thanks

B4X:
Sub GetViewsRecursive(Pane1 As Pane) As List
    Dim Result As List
    Result.Initialize
    For i = 0 To Pane1.NumberOfNodes-1
        Dim N As Node =Pane1.GetNode(i)
        Result.Add(N)
        If N Is Pane Then
            Dim ChildList As List = GetViewsRecursive(N)
            Result.AddAll(ChildList)
        End If
    Next
    Return Result
End Sub
 
Top