Ver Mensaje Individual
  #3  
Antiguo 02-07-2020
identsoft identsoft is offline
Miembro
 
Registrado: abr 2006
Posts: 282
Reputación: 19
identsoft Va por buen camino
1.-Estoy trabajando con DBExpres (perdón por no decirlo antes).
2.- No hay más info del error. Eso es todo lo que sale.
3.- Si sustituyo los parámetros por sql directo, funciona bien. No da error:
Código Delphi [-]
         SQLInsertar.SQL.Text := 'INSERT INTO AGENTES (AGENTE,NOM_AGENTE,DIR_AGENTE,POB_AGENTE,' +
               'CPOS_AGENTE,TELEFONO1,FAX,PROVIN,OBSERVACIONES,POR_RETE,POR_COMIS, ' +
               'CTA_SUPLIDOS,CTA_CLIENTE)' +
               'VALUES (' + getToken(slinea,'|',1) + ',' + QuotedStr(gettoken(sLinea,'|',2)) + ',' + QuotedStr(gettoken(slinea,'|',3)) + ',' +
               QuotedStr(gettoken(slinea,'|',4)) +','+ gettoken(slinea,'|',5) + ',' + QuotedStr(gettoken(slinea,'|',6)) +',' + QuotedStr(gettoken(slinea,'|',7)) + ',' + gettoken(slinea,'|',8) + ',' +
               QuotedStr(gettoken(slinea,'|',9)) + ',' + stringreplace(gettoken(slinea,'|',10),',','.',[rfReplaceAll]) + ',' + StringReplace(gettoken(slinea,'|',11),',','.',[rfReplaceAll]) + ',' +
               QuotedStr(gettoken(slinea,'|',12)) + ',' + QuotedStr(gettoken(slinea,'|',13)) + ')';

Pero hasta ahora confiaba más en parámetros.
Responder Con Cita