Ver Mensaje Individual
  #1  
Antiguo 15-01-2005
LOBO VELEZ LOBO VELEZ is offline
Registrado
 
Registrado: ene 2005
Posts: 5
Reputación: 0
LOBO VELEZ Va por buen camino
Talking siguen los problemas con el campo auto incremento

gracias pero tengo un problema con lo del auto incremento me mas¿rca un error en :setautoinc

procedure TForm1.Button1Click(Sender: TObject);
begin
Table1.Close;

SetAutoInc('C:\Delphi\Prueba.db',StrtoInt(edit1.text));
Table1.Open;
end;
Procedure SetAutoInc(filename : string; Value : Longint);
var
mystream : tfilestream;
begin
mystream := tfilestream.create(filename,
fmOpenWrite + fmShareExclusive);
try
mystream.Seek(73, soFromBeginning);
mystream.Writebuffer(Value, SizeOf(Value));
finally
mystream.Free;
end;
end;