stevel05 Expert Licensed User Longtime User Sep 26, 2022 #1 I was interested to see which Properties are available in DesignerArgs.DesignerProperties so I tried: B4X: Public Sub Test(DesignerArgs As DesignerArgs) For Each k As Object In DesignerArgs.DesignerProperties.Keys Log(k) Next End Sub And got an error java.lang.RuntimeException: method not supported. Use For Each instead. Click to expand... Are these intended to be available?
I was interested to see which Properties are available in DesignerArgs.DesignerProperties so I tried: B4X: Public Sub Test(DesignerArgs As DesignerArgs) For Each k As Object In DesignerArgs.DesignerProperties.Keys Log(k) Next End Sub And got an error java.lang.RuntimeException: method not supported. Use For Each instead. Click to expand... Are these intended to be available?
stevel05 Expert Licensed User Longtime User Sep 26, 2022 #2 I have found a workaround for now I just realized it is a HashMap so : B4X: Dim M As Map M.Initialize M.As(JavaObject).RunMethod("putAll",Array(DesignerArgs.DesignerProperties)) For Each k As Object In M.Keys Log(k) Next
I have found a workaround for now I just realized it is a HashMap so : B4X: Dim M As Map M.Initialize M.As(JavaObject).RunMethod("putAll",Array(DesignerArgs.DesignerProperties)) For Each k As Object In M.Keys Log(k) Next