Ver Mensaje Individual
  #3  
Antiguo 14-06-2010
Avatar de olbeup
olbeup olbeup is offline
Miembro
 
Registrado: jul 2005
Ubicación: Santiago de la Ribera (España)
Posts: 685
Reputación: 19
olbeup Va camino a la fama
Mira este código si te sirve:
Código Delphi [-]
procedure TForm1.Insertar;
var
  ValueChk: Array[Boolean] of ShortInt = (0, 1);
begin
  with QueryPac do
  begin
    SQL.Add('INSERT INTO Pacientes(NOMBRE, CAMPO_BIT)');
    SQL.Add('VALUES(' + QuotedStr(Edit3.Text)+ ', ' + IntToStr(ValueChk[CheckBox1.Checked]) + ')');
  end;
end;
Los Campos Bit pueden tener 3 valores distintos:
0 = False, 1 = True, -1 = True

Un saludo.
Responder Con Cita