Webpage / container controlcount is no longer exist?

I usually utilize zindex = me.ControlCount + 1

But now, looks like it no longer exists. What is its replacement? Do we have dictionary for the replaced properties?

WebPage.Controls is an iterator, so you could write it yourself:

Function ControlCount(extends wp as WebPage) as integer
   var i = 0
   for each wc as WebControl in wp.Controls
     i = i + 1
   next
   return i 

(doing this from memory, I think this will work, but haven’t tested it)

1 Like

Thanks!

I think this works. However “zindex” is no longer exists. :frowning:
What happened to the world?

You can set the zindex of a control in the style property.

Me.Style.Value(“z-index”) = “42”
1 Like