Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Cycle through all controls on a form


Open "myfile" For Output As #1
Dim X As Control
For Each X In Controls
    If Typeof X Is TextBox Then
       Printer. Print X.text
    End If
Next X
Close #1