Tema: CheckBox
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/07/2006, 15:43
Avatar de RootK
RootK
Moderador
 
Fecha de Ingreso: febrero-2002
Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 23 años, 1 mes
Puntos: 50
podrías hacerlo de ésta forma:


Cita:
Dim sbSQL As New System.Text.StringBuilder
...
...
If ckbRecopInfo.Checked Then
sbSQL.Append(ckbRecopInfo.Text.ToLower)
End If
If ckbInterpNum.Checked Then
sbSQL.Append(ckbInterpNum.Text.ToLower)
End If
If ckbjuicio.Checked Then
sbSQL.Append(ckbjuicio.Text.ToLower)
End If
...
...
y con sbSQL.ToString() obtienes todo el texto

por cierto, ya no necesita el casting a string ya que por default Text es un string

Salu2
__________________
Nadie roba nada ya que en la vida todo se paga . . .

Exentrit - Soluciones SharePoint & Net