Make 5 buttons of textfield via code

Hi, I’ve done this in desktop version, but I don’t seem to get it to work in web…

this is what i do:

Dim f as WebTextField
Dim yD as integer
yD = 40
for i = 1 to ant
f = new tf = yD
f.width = 500
f.height = 18
f.left = 20
f.visible = TRUE
f.text = str(i)
yD = yD + ls

This wold normally work in a desktop version, but not in WEB, what is wrong ?

do I have to use containers and embeddwithin ?

Yes. The New technique usual in Desktop does not work in Web.