Fórum campo boolean #279147
27/04/2005
0
ate + pessoal !
Guilherme
Curtir tópico
+ 0Posts
27/04/2005
Cabelo
e altere as propriedades do dbcheckbox
ValueChecked = 1
ValueUnCheked = 0
Gostei + 0
27/04/2005
Guilherme
Gostei + 0
27/04/2005
Guilherme
Gostei + 0
27/04/2005
Rômulo Barros
Para q funcione corretamente, sua query / table tem que estar em modo de edição(dsEdit) ou inserção (dsInsert). Para vc ver o bom funcionamento, de um query.edit ou query.Insert.
Gostei + 0
27/04/2005
Guilherme
Gostei + 0
27/04/2005
Cabelo
E atribuir o valor manualmente..
utilizando a opção checked = false ou true..
Gostei + 0
28/04/2005
Guilherme
if DBCheckBox1.Checked=true then begin TBFuncionariosAGENTES.Value:= 1; end else begin TBFuncionariosAGENTES.Value:= 0; end; if DBCheckBox2.Checked=true then begin TBFuncionariosBANCOS.Value:= 1; end else begin TBFuncionariosBANCOS.Value:= 0; end; if DBCheckBox3.Checked=true then begin TBFuncionariosDESPACHANTES.Value:= 1; end else begin TBFuncionariosDESPACHANTES.Value:= 0; end; if DBCheckBox4.Checked=true then begin TBFuncionariosFUNCIONARIOS.Value:= 1; end else begin TBFuncionariosFUNCIONARIOS.Value:= 0; end; if DBCheckBox5.Checked=true then begin TBFuncionariosFINANCIAMENTOS.Value:= 1; end else begin TBFuncionariosFINANCIAMENTOS.Value:= 0; end; if DBCheckBox6.Checked=true then begin TBFuncionariosLOJAS.Value:= 1; end else begin TBFuncionariosLOJAS.Value:= 0; end;
ô vo descrever o q fiz
criei os campos integer ,mudei a provriedade de valuecheck para 1 e valueuncheckd para 0 e coloquei esse codigo acima no beforepost !!
o q to fazendo de errado ???????????????
Valeu
Gostei + 0
28/04/2005
Guilherme
galera ajuda eu com char(1) ´S´ e ´N´ tbmnao deu certo
Gostei + 0
28/04/2005
Gandalf.nho
Gostei + 0
28/04/2005
Guilherme
nao sei o q ta errado sera q é o delphi ??????
gborges_13@hotmail.com messenger (qm souber pode me adicionar!)
Gostei + 0
28/04/2005
Gandalf.nho
Gostei + 0
29/04/2005
Guilherme
mtos pessoas falaram q usan assim so q nao sei o porq nao esta funcionando !!!!!
Gostei + 0
29/04/2005
Gandalf.nho
Gostei + 0
29/04/2005
Guilherme
é exatamente isso q to fazendo so q nao da certo !!!!
Gostei + 0
02/05/2005
Guilherme
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)