req,req2 sont des chaînes
resreq,resreq2 sont des booleens
ret est un entier
Message("Insciption de l etudiant")
req = "Begin INSCRIPTION(" + CODET + ", " + NOMET + " ,"
req = req + RC + NB_POINTS + ", " + CODEUER + " , " + CODEDIP + " ); End;"
resreq=SQLExec(req,"REQ")
SI resreq ALORS
Info("Etudiant inscrit")
SINON
SQLInfoGene("REQ")
Erreur(SQL.MesErreur)
FIN
Exemple de fonction :
FUNCTION MaProc(NumCpt Char) return real IS
id_cust real;
BEGIN
select summ(montant) into id_cist
from operation
where operatio.numcompte=NumCpt
group by numcompte;
END;
Exemple d appel de cette procedure en W-Langage:
select numcompte,soldeini+maproc(numcompte) formcompte
Source : le support pcsoft