Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/05/2009, 19:51
hunter18
 
Fecha de Ingreso: junio-2008
Mensajes: 343
Antigüedad: 15 años, 10 meses
Puntos: 4
Información Ayuda con codigo para checkbox

Utilizo 12 controles checkbox y el codigo realmente marea, alguien me puede ayudar a optimizarlo para no repetir tanta veces la misma linea de codigo

Código PHP:
If DataGrid1.Columns(3).Text "-1" Then Chkx Else Chkx 0
Form1
.chkClie.Value Chkx

If DataGrid1.Columns(4).Text "-1" Then Chkx Else Chkx 0
Form1
.chkProd.Value Chkx

If DataGrid1.Columns(5).Text "-1" Then Chkx Else Chkx 0
Form1
.chkProforma.Value Chkx

If DataGrid1.Columns(6).Text "-1" Then Chkx Else Chkx 0
Form1
.chkBoleta.Value Chkx

If DataGrid1.Columns(7).Text "-1" Then Chkx Else Chkx 0
Form1
.chkFactura.Value Chkx

If DataGrid1.Columns(8).Text "-1" Then Chkx Else Chkx 0
Form1
.chkEmp.Value Chkx

Form1
.Show 1