« LogEvent (TdbfEventLog) » : différence 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... ») |
Aucun résumé des modifications |
||
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 : |
Dernière version du 2 juin 2017 à 13:53
<source lang='delphi'>class procedure LogEvent(iCode:Integer; const iCaption:String; const iInformations:String);</source>
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 : <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 :
{{#if:TdbfEventLog (Class)|
{{#if:TdbfEventLog (Class)|— TdbfEventLog (Class) |}} — Développement DSM —
|
{{#if:|— [[{{{1}}}]] |}} — Développement DSM —
}}