dim found as boolean = false
For i = 0 to act.numberofview-1
dim v as view = act.getview(i)
If Not(v.Tag = Null) Then
vmap = v.Tag
If vmap.Get("name") = "testbutton" Then
Dim newbt as Button
newbt = CreateNewButton(vmap) 'don't know what this do, i suppose make button
act.addview(newbt,v.left,v.top,v.width,v.height)
v.removeview
found = true
else
if found then v.sendToBack
End If
End If
Next