Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15537

EXCLUDE control from a looping

$
0
0
Code:

Private Sub PULISCI_TUTTO_ESCLUSO()

    Dim CTL As Control, TIPO As String

    For Each CTL In Me.Controls
        If TypeOf CTL Is ComboBox Then
            TIPO = CTL.Name
            If TIPO <> "CDARRIVO" Or TIPO <> "CTIPALLOGGIATO" Then
                Debug.Print CTL.Name
                CTL.Text = ""
            End If
        End If
    Next CTL

End Sub

why the <> dont work!
in debug.print have CDARRIVO!!!! or CTIPALLOGGIATO!!!!

Viewing all articles
Browse latest Browse all 15537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>