GetValue (exp)

De Wiki1000

<source lang='delphi'>function GetValue(iExpression:string):Variant;</source>

Retourne le résultat de l'évaluation d'une expression

Tip : Cette fonction doit être utilisée dans les expressions comme valeur littérale
iExpression Expression objet évaluée

Exemple :

<source lang="delphi"> Type

 VueSoldeEcriture = viewOf(TEcriture,VueSoldeComptePeriode)
   credit:Currency = credit:TCValue;
   debit:Currency = debit:TCValue;
   typeLot:Integer = piece.lot.typeLot; 
   codeCompte:string = compteGeneral.codeCompte;
   captionCompte:string = compteGeneral.Caption; 
   sensCompte:Integer = compteGeneral.sensPrivilegie; 
   norme:string = piece.normeComptable.code; 
   eDate:Tdatetime = eDate notInSelect; 
   [eDate >= GetValue('begin Result := TFacadeInitGeneral.GetPreviousPeriodEndDate(Date); end;')] 
 end;

</source>

Voir aussi:


{{#if:Expressions objets (code)|

{{#if:Expressions objets (code)|— Expressions objets (code) |}} — Développement DSM

|

{{#if:|— [[{{{1}}}]] |}} — Développement DSM

}}