B4J Question Need to create table view array

DavidMeees

Member
Licensed User
I would like to be able to create an Array of table views in B4j for desktop app like i could do in vb6 and the place them on the form
I have tried various things working off what I thought where similar examples but cant seem to get them to initilize

Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is nothing special with an array of any object or view.
B4X:
Dim Tables() As TableView = Array As TableView(TableView1, TableView2)
I recommend you to create a List instead of an array and you can of course automate this process and collect all TableViews:
B4X:
For Each x As B4XView In Root.GetAllViewsRecursive
 If x Is TableView Then
  Tables.Add(x)
End If
Next
 
Upvote 0
Top