LA LISTE DES ERREURS DU BDE

Utilisateur anonyme - 20 nov. 2006 à 13:44
JulioDelphi Messages postés 2226 Date d'inscription dimanche 5 octobre 2003 Statut Membre Dernière intervention 18 novembre 2010 - 21 nov. 2006 à 09:59
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.

https://codes-sources.commentcamarche.net/source/40391-la-liste-des-erreurs-du-bde

JulioDelphi Messages postés 2226 Date d'inscription dimanche 5 octobre 2003 Statut Membre Dernière intervention 18 novembre 2010 14
21 nov. 2006 à 09:59
a quand :

Function AfficheMessage(Msg:String);
Begin
Showmessage(Msg);
end;

?
cs_abdousoft Messages postés 100 Date d'inscription mardi 3 août 2004 Statut Membre Dernière intervention 5 novembre 2007
21 nov. 2006 à 08:07
Salut

Merci pour cette information?

@+
cs_Delphiprog Messages postés 4297 Date d'inscription samedi 19 janvier 2002 Statut Membre Dernière intervention 9 janvier 2013 32
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."

CQFD.
Utilisateur anonyme
20 nov. 2006 à 17:09
Tiré de l'aide de Delphi4 :

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és 100 Date d'inscription mardi 3 août 2004 Statut Membre Dernière intervention 5 novembre 2007
20 nov. 2006 à 15:06
salut

fonction standard de Delphi?


@+
Utilisateur anonyme
20 nov. 2006 à 13:44
Salut,
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
Rejoignez-nous