Iterate through webContainControl controls

I want to check to see that none of my text fields are blank before submitting them to a database.

for x as integer=0 to self.ControlCount if Control(x) IsA WebTextField then if Control(x).Text = "" then return true end if next return false
This obviously doesn’t compile but I was hoping someone might know the exact syntax for doing this…

Solved:

[code]Function AnyBlank() As Boolean
dim c as WebTextField
dim i as integer

for i=0 to self.ControlCount
if self.ControlAtIndex(i) IsA WebTextField then
c =WebTextField(self.ControlAtIndex(i))
if c.Text = “” then return true
end if
next

return false

End Function
[/code]