JulioDelphi
Messages postés2226Date d'inscriptiondimanche 5 octobre 2003StatutMembreDernière intervention18 novembre 201014 21 nov. 2006 à 09:59
a quand :
Function AfficheMessage(Msg:String);
Begin
Showmessage(Msg);
end;
?
cs_abdousoft
Messages postés100Date d'inscriptionmardi 3 août 2004StatutMembreDernière intervention 5 novembre 2007 21 nov. 2006 à 08:07
Salut
Merci pour cette information?
@+
cs_Delphiprog
Messages postés4297Date d'inscriptionsamedi 19 janvier 2002StatutMembreDernière intervention 9 janvier 201332 20 nov. 2006 à 18:15
Soit dit en passant, on trouve ceci dans le projet DbErrors, unité DM1.pas contenu dans le dossier "Demos\DB\DbErrors" livré avec Delphi :
"A complete listing of the database errorcodes is found in the
DBIErrs.Int file in the Delphi/Doc directory or in the IDAPI.h
file in the Borland Database Engine."
function DbiGetErrorString (rslt: DBIResult; pszError: PChar): DBIResult stdcall;
Description
DbiGetErrorString returns the message associated with a given error code.
Parameters
rslt Type: DBIResult (Input)
Specifies the error code.
pszError Type: pCHAR (Output)
Pointer to the client buffer that receives the message string for the given error code.
Fonction Standard := Fonction existante
@+
Cirec
cs_abdousoft
Messages postés100Date d'inscriptionmardi 3 août 2004StatutMembreDernière intervention 5 novembre 2007 20 nov. 2006 à 15:06
21 nov. 2006 à 09:59
Function AfficheMessage(Msg:String);
Begin
Showmessage(Msg);
end;
?
21 nov. 2006 à 08:07
Merci pour cette information?
@+
20 nov. 2006 à 18:15
"A complete listing of the database errorcodes is found in the
DBIErrs.Int file in the Delphi/Doc directory or in the IDAPI.h
file in the Borland Database Engine."
CQFD.
20 nov. 2006 à 17:09
function DbiGetErrorString (rslt: DBIResult; pszError: PChar): DBIResult stdcall;
Description
DbiGetErrorString returns the message associated with a given error code.
Parameters
rslt Type: DBIResult (Input)
Specifies the error code.
pszError Type: pCHAR (Output)
Pointer to the client buffer that receives the message string for the given error code.
Fonction Standard := Fonction existante
@+
Cirec
20 nov. 2006 à 15:06
fonction standard de Delphi?
@+
20 nov. 2006 à 13:44
encore une fois ce code ne fait que reprendre une fonction standard de Delphi
et de plus, il aurait été préférable de mettre les Bases comme ceci:
ERRBASE_NONE = 0; { No error }
ERRBASE_SYSTEM = $2100; { System related (Fatal Error) }
ERRBASE_NOTFOUND = $2200; { Object of interest Not Found }
ERRBASE_DATACORRUPT = $2300; { Physical Data Corruption }
ERRBASE_IO = $2400; { I/O related error }
ERRBASE_LIMIT = $2500; { Resource or Limit error }
ERRBASE_INTEGRITY = $2600; { Integrity Violation }
ERRBASE_INVALIDREQ = $2700; { Invalid Request }
ERRBASE_LOCKCONFLICT = $2800; { Locking/Contention related }
ERRBASE_SEC = $2900; { Access Violation - Security related }
ERRBASE_IC = $2A00; { Invalid context }
ERRBASE_OS = $2B00; { Os Error not handled by Idapi }
ERRBASE_NETWORK = $2C00; { Network related }
ERRBASE_OPTPARAM = $2D00; { Optional Parameter related }
ERRBASE_QUERY = $2E00; { Query related }
ERRBASE_VERSION = $2F00; { Version Mismatch Category }
ERRBASE_CAPABILITY = $3000; { Capability not supported }
ERRBASE_CONFIG = $3100; { System configuration error }
ERRBASE_WARNING = $3200;
ERRBASE_OTHER = $3300; { Miscellaneous }
ERRBASE_COMPATIBILITY = $3400; { Compatibility related }
ERRBASE_REPOSITORY = $3500; { Data Repository related }
ERRBASE_DRIVER = $3E00; { Driver related }
ERRBASE_RC = $3F00; { Internal }
@+
Cirec