I am getting this error for the following code.
For Each ckb As AS_CheckboxAdvanced In p
src\AA\Adjunct\b4xmainpage.java:6666: error: incompatible types: B4XViewWrapper cannot be converted to IterableList
group62 = _p;
^
1 error
The panel p is created to be used in a dialog.
Is there another way to iterate through the checkboxes? There are not too many of them so I could just disable each individually. But now I am just curious!
For Each ckb As AS_CheckboxAdvanced In p
src\AA\Adjunct\b4xmainpage.java:6666: error: incompatible types: B4XViewWrapper cannot be converted to IterableList
group62 = _p;
^
1 error
B4X:
For Each ckb As AS_CheckboxAdvanced In p
ckb.Enabled = False
Next
The panel p is created to be used in a dialog.
B4X:
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, 300dip, 220dip) 'set the content size
p.LoadLayout("DeclareWar")
Dim rs As ResumableSub = Dialog.ShowCustom(p, "Yes", "No", "")
Wait For (rs) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
...
End If
Is there another way to iterate through the checkboxes? There are not too many of them so I could just disable each individually. But now I am just curious!