error validacion checkbox
Publicado por andrey (5 intervenciones) el 10/11/2022 14:54:05
cree un formulario donde tengo una grilla y una columna con un checkbox, tengo un boton llamadao procesar con el siguiente codigo.
If thisform.Grid1.Column1.Check1.Value = .T.
select proveedor
update proveedor marcar = 2 where marcar =1
endif
esta es la configuracion del checkbox
thisform.Grid1.Column1.CurrentControl = "Check1"
thisform.Grid1.Column1.Check1.AutoSize = .T.
thisform.Grid1.Column1.Check1.Caption = ''
thisform.Grid1.Column1.Check1.BackStyle = 0
thisform.Grid1.Column1.Check1.Value = .F.
thisform.Grid1.Column1.Sparse = .F.
thisform.Grid1.Column1.Visible = .T.
cuando le doy click al boton procesar me sale el error
Operator / operand type mismatch.
cambie el codigo del boton
If thisform.Grid1.Column1.Check1.Value
select proveedor
update proveedor marcar = 2 where marcar =1
endif
ahora sale el error Data type mismatch.
If thisform.Grid1.Column1.Check1.Value = .T.
select proveedor
update proveedor marcar = 2 where marcar =1
endif
esta es la configuracion del checkbox
thisform.Grid1.Column1.CurrentControl = "Check1"
thisform.Grid1.Column1.Check1.AutoSize = .T.
thisform.Grid1.Column1.Check1.Caption = ''
thisform.Grid1.Column1.Check1.BackStyle = 0
thisform.Grid1.Column1.Check1.Value = .F.
thisform.Grid1.Column1.Sparse = .F.
thisform.Grid1.Column1.Visible = .T.
cuando le doy click al boton procesar me sale el error
Operator / operand type mismatch.
cambie el codigo del boton
If thisform.Grid1.Column1.Check1.Value
select proveedor
update proveedor marcar = 2 where marcar =1
endif
ahora sale el error Data type mismatch.
Valora esta pregunta
0