Comment : |
La fonction TRIMLEN détermine la longueur d'une chaîne de caractères, excepté les espaces à droite.
TRIMLEN (string)
où :
Alphanumérique
est la chaîne à convertir.
TRIMLEN détermine la longueur d'un champ dans COUNTRY sauf les espaces de fin :
MAINTAIN FILE CAR
MODULE IMPORT (MNTUWS)
NEXT COUNTRY INTO STK1
COMPUTE LEN/I3 = LENGTH(STK1(1).COUNTRY);
COMPUTE LEN2/I3 = TRIMLEN(STK1(1).COUNTRY);
TYPE "<STK1(1).COUNTRY HAS A LENGTH OF <LEN2 WITHOUT TRAILING BLANKS"
END
Le résultat est :
ENGLAND HAS A LENGTH OF 7 WITHOUT TRAILING BLANKS
Information Builders |