Ver Mensaje Individual
  #4  
Antiguo 23-06-2006
userlazarus userlazarus is offline
Miembro
 
Registrado: abr 2006
Posts: 55
Reputación: 19
userlazarus Va por buen camino
En el TEdit pongo por ejemplo ftString y me sigue dando tipo de datos
erroneo.
Utilizo lo siguiente:

Código Delphi [-]
procedure TForm1.Button2Click(Sender: TObject);
begin
     basedatos := TDbf.Create(nil);
     try
     basedatos.TableLevel := 4
     basedatos.Exclusive := True;
     basedatos.TableName := Edit1.Text+'.dbf';
     With basedatos.FieldDefs do begin
      Add('nombre',Edit2.Text,80,True);
      Add('Apellidos',Edit3.Text,80,True);
      End;
     basedatos.CreateTable;
     basedatos.Open;
     basedatos.Close;
  finally
    basedatos.Free;
  end;
end;

Última edición por userlazarus fecha: 23-06-2006 a las 08:30:10.
Responder Con Cita