LogOperation (TdbfEventLog)
De Wiki1000
(Différences entre les versions)
(Page créée avec « <source lang='delphi'>class procedure LogOperation(iEvent:Integer; const iInformations:String);</source> Cette méthode de classe permet d'enregistrer une opération. Une... ») |
|||
| Ligne 15 : | Ligne 15 : | ||
|Informaions complémentaires | |Informaions complémentaires | ||
|} | |} | ||
| + | |||
| + | Exemple : | ||
| + | |||
| + | <source lang="delphi"> | ||
| + | function logOperation(iCode:Integer; const iInformations:string):boolean; | ||
| + | begin | ||
| + | ClassManager.beginTran; | ||
| + | try | ||
| + | TdbfEventLog.logOperation(iCode,iInformations); | ||
| + | Result := ClassManager.Commit; | ||
| + | except | ||
| + | ClassManager.RollBack; | ||
| + | end; | ||
| + | end; | ||
| + | </source> | ||
Voir aussi : | Voir aussi : | ||
Version actuelle en date du 2 juin 2017 à 14:57
class procedure LogOperation(iEvent:Integer; const iInformations:String);
Cette méthode de classe permet d'enregistrer une opération. Une opération est un évènement dont le code opération es normalisé.
| Paramètre | Usage |
|---|---|
| iEvent | identifiant de l'opération |
| iInformations | Informaions complémentaires |
Exemple :
function logOperation(iCode:Integer; const iInformations:string):boolean; begin ClassManager.beginTran; try TdbfEventLog.logOperation(iCode,iInformations); Result := ClassManager.Commit; except ClassManager.RollBack; end; end;
Voir aussi :
| Whos here now: Members 0 Guests 0 Bots & Crawlers 1 |