GetCounter (QueryExporter)
<source lang='delphi'>function GetCounter(const iName:string):Integer;</source>
Cette méthode retourne la valeur d'un compteur.
Paramètre | Usage |
---|---|
Result | La valeur du compteur |
iName | Le nom du compteur |
Exemple :
Utilisation des compteurs:
<source lang="delphi">
//procedure TVueExport.RegleDerivation_EcritureNum; begin
Result := 'Counter(P,'+PieceRef+')';
end;
procedure TExportVue.doExport; begin
inst := TQueryExporter.Create; ... inst.SetCounter('P',0); ... ctn := inst.GetCounter('P'); inst.Export(TVueExport.CreateSelector(....)); ctn := inst.GetCounter('P') - ctn; ...
end; </source>
Vue : DatePiece PieceRef EcritureNum 01-01-2023 1230 1 01-01-2023 1230 1 01-01-2023 1230 1 01-02-2023 1232 2 01-02-2023 1232 2 01-02-2023 1232 2 01-03-2023 1231 3 01-03-2023 1231 3 ...
Voir aussi :
{{#if:QueryExporter (tech)|
{{#if:QueryExporter (tech)|— QueryExporter (tech) |}} — Développement DSM —
|
{{#if:|— [[{{{1}}}]] |}} — Développement DSM —
}}