Ver Mensaje Individual
  #2  
Antiguo 14-07-2007
Avatar de jhonny
jhonny jhonny is offline
Jhonny Suárez
 
Registrado: may 2003
Ubicación: Colombia
Posts: 7.058
Reputación: 30
jhonny Va camino a la famajhonny Va camino a la fama
Escribiré una posible solución, asumiendo que dicha tabla sea de tipo TTable, pues no especificaste el tipo de tabla que usas:

Código Delphi [-]
 
var
  i :Integer;
begin
  for i := 0 to CheckListBox1.Items.Count -1 do
  begin
    if not CheckListBox1.Checked[i] then
      ListBox1.Items.Add(CheckListBox1.Items[i])
    else
    begin
      Tabla1.Append;
      Tabla1.FieldByName('NombreDelCampo').AsString := CheckListBox1.Items[i];
      Tabla1.Post;
    end;
  end;
end;

//Lo edite para que no quedara el ; y para agregar el Items.
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!"

http://www.purodelphi.com/
http://www.nosolodelphi.com/

Última edición por jhonny fecha: 14-07-2007 a las 04:20:21.
Responder Con Cita