webcontrol enumeration

Hi there!

I want to know how to enumerate web control on a container to get the value of text field.

Guys please help.

[quote=213251:@ronaldo florendo]Hi there!

I want to know how to enumerate web control on a container to get the value of text field.

Guys please help.[/quote]

See http://documentation.xojo.com/index.php/WebView.ControlAtIndex

Thanks Michel!

I found solution from old post. I just want to share my learning:

Here is the code:

DESC: This will dynamically validate textbox if in case user forgot to fill up textbox
'-------------------------------------------------------------------------------
Function ValidateTextbox() as boolean

dim c as WebControl
dim retValue as boolean

retValue = true

For i As Integer = 0 To dialogBOX.ControlCount-1

c = WebControl(dialogBOX.ControlAtIndex(i))

if c isa WebTextField then
  if WebTextField(c).text="" then
    retValue = false
    exit for
  end
  
end

Next

return retValue

end
'-------------------------------------------------------------------------------

Congratulations Ronaldo.