Ver Mensaje Individual
  #9  
Antiguo 15-10-2010
cloayza cloayza is offline
Miembro
 
Registrado: may 2003
Ubicación: San Pedro de la Paz, Chile
Posts: 947
Reputación: 25
cloayza Tiene un aura espectacularcloayza Tiene un aura espectacular
No me fije que no la habia definido. Ahora si.

Código Delphi [-]
procedure TForm1.Button2Click(Sender: TObject);
var 
   Index:Integer;
begin
    index:=ClientDataSet1.FieldDefs.IndexOf('NOMBRE_CAMPO_A_ELIMINAR');
    if index>-1 then
       //Lo elimina de la lista de campos
       ClientDataSet1.FieldDefs.Delete(index);
end;

Saludos
Responder Con Cita