LogEvent (TdbfEventLog)

De Wiki1000
(Différences entre les versions)
(Page créée avec « <source lang='delphi'>class procedure LogEvent(iCode:Integer; const iCaption:String; const iInformations:String);</source> Cette méthode de classe permet d'enregistrer u... »)
 
 
Ligne 17 : Ligne 17 :
 
|Informaions complémentaires
 
|Informaions complémentaires
 
|}
 
|}
 +
 +
Exemple :
 +
<source lang=delphi>
 +
function logEvent(iCode:Integer; const iCaption:string; const iInformations:string):boolean;
 +
begin
 +
  ClassManager.beginTran;
 +
  try
 +
    TdbfEventLog.logEvent(iCode,iCaption,iInformations);
 +
    Result := ClassManager.Commit;
 +
  except
 +
  ClassManager.RollBack;
 +
end;
 +
end;
 +
</source>
  
 
Voir aussi :
 
Voir aussi :

Version actuelle en date du 2 juin 2017 à 15:53

class procedure LogEvent(iCode:Integer; const iCaption:String; const iInformations:String);

Cette méthode de classe permet d'enregistrer un évènement.

Paramètre Usage
iCode Code de l'évènement
iCaption Libellé de l'évènement
iInformations Informaions complémentaires

Exemple :

function logEvent(iCode:Integer; const iCaption:string; const iInformations:string):boolean;
begin
  ClassManager.beginTran;
  try
    TdbfEventLog.logEvent(iCode,iCaption,iInformations);
    Result := ClassManager.Commit;
  except
  ClassManager.RollBack;
 end;
end;

Voir aussi :


TdbfEventLog (Class)Développement DSM





Whos here now:   Members 0   Guests 0   Bots & Crawlers 1
 
Outils personnels