GetCounter (QueryExporter)

De Wiki1000

Version11-32x32.png

function GetCounter(const iName:string):Integer;

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:

//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;
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 :

QueryExporter (tech)Développement DSM





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