Cita:
|
Empezado por Morphine
Al duplicar claves primarias obtengo este mensaje:
"KeyViolation.
Violation of Primary or Unique Key constraint"NOMBRE_CONSTRAINT" on table "NOMBRE_TABLA""
y sinceramente no es muy amigable.
Desearia poder cambiar este mensaje.
|
Intenta con el evento OnPostError del Query:
Código Delphi
[-]
Action := daAbort;
raise Exception.Create('Mi propio mensaje');
// Saludos