by Andrew PLaisted (1 Submission)
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
This will get all Form Item Names with webbrowser control.
Public Function GetAllFormNames(doc As HTMLDocument, Form As Integer) As String
Dim innames(20) As String
Dim max As Integer
max = doc.Forms(Form).length
For i = 0 To max
If Not (doc.Forms(Form).Item(i) Is Nothing) Then
innames(i) = doc.Forms(Form).Item(i).name
Debug.Print innames(i)
End If
Next i
End Function