...
' let's add 10 containers, each with a label and a button
For counter = 1 To 10
Dim cont As ABMContainer
cont.Initialize(page, counter, "") ' <------- the id is just a number here
cont.AddRows(1,False,"").AddCellsOSMP(2,0,0,0,6,6,6,0,0,0,0,"")
cont.BuildGrid
' just like normal, we add a label with the name lbl (NO counter here, else our lables will be called lbl1 -> lbl10 and we just want lbl)
Dim lbl As ABMLabel
lbl.Initialize(page, "lbl", "Label " & counter, ABM.SIZE_H6, True, "")
cont.Cell(1,1).AddComponent(lbl)
' just like normal, we add a button with name btn (NO counter here, else the events would be btn1_clicked -> btn10_clicked and we just want btn_clicked)
Dim btn As ABMButton
btn.InitializeFlat(page, "btn", "", "", "Button " & counter, "")
cont.Cell(1,2).AddComponent(btn)
' here we add the container, with prefix cont so we will get cont1 -> cont10
' the prefix 'cont' + the containers id, which is a number (counter)
page.Cell(1,1).AddArrayComponent(cont, "cont")
Next
...