Ver Mensaje Individual
  #2  
Antiguo 08-02-2009
Avatar de RONPABLO
[RONPABLO] RONPABLO is offline
Miembro Premium
 
Registrado: oct 2004
Posts: 1.514
Reputación: 21
RONPABLO Va por buen camino
Prueba con los siguientes combios...

Código Delphi [-]
if FileExists(Plantilla) then begin
  vFichero := TStringList.Create;
  vFichero.LoadFromFile(IncludeTrailingBackslash(ExtractFilePath(Application.ExeName)) + Plantilla);
  for i:=1 to vFichero.Count - 1 do begin
    vsLinea := vFichero.Strings[i];
    vsSql := 'INSERT INTO PLANTILLA_XML (ATRIB1) VALUES (:vsLinea)';
    qCargaTabla.Close;
    qCargaTabla.SQL.Text := vsSql;
qCargaTabla.ParamByName('vsLinea').asString := vsLinea;
    qCargaTabla.ExecSQL;
  end;//for
  vFichero.Clear;
  vFichero.Free;
end //if FileExists
__________________
"Como pasa el tiempo..... ayer se escribe sin H y hoy con H"
Responder Con Cita