Posts
247
Comments
67
Trackbacks
4
Fürs Archiv: Werte einer CheckBoxList einlesen (VB.NET)

Die selektierten Werte einer CheckBoxList kann mit der folgenden Schleife abfragen und in diesem Beispiel an einen Select-Befehl anhängen:

For i = 0 To cblObject.Items.Count - 1
   If cblObject.Items(i).Selected Then
      SelectStatement = SelectStatement & " and " & cblObject.Items(i).value & "=-1 "
   End If
Next

posted on Friday, January 13, 2006 1:55 PM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 4 and 4 and type the answer here: