Invoquer une Fonction depuis une autre Fonction

Comment :

Une fonction peut être un argument pour une autre fonction.


Haut de page

x
Syntaxe : Invoquer une Fonction depuis une autre Fonction
field = function([arguments,] function2[arguments2,] arguments);

où :

field

est le nom de champ comprenant le résultat de l'expression.

function

est une fonction.

arguments

sont des arguments pour fonction.

function2

est la fonction qui est un argument pour fonction.

arguments2

sont des arguments pour fonction2.



Exemple : Invoquer une Fonction depuis une autre Fonction

Dans l'exemple suivant, la fonction AYMD est un argument pour la fonction YMD :

-SET &DIFF = YMD(&YYMD, AYMD(&YYMD, 4, 'I8'));

WebFOCUS