RTRIM

Icône du lien vers le conceptVoir également

Renvoie la copie d'une chaîne sans les espaces à droite.

Support WebVue - Oui.

Syntaxe

StrVal = RTRIM(string);

Type de retour : STR

Argument

Définition

string

La chaîne dont les espaces terminaux doivent être supprimés. Type STR.

Exemple

SUB Main()

'Declare variables

DIM strResult as Str;

DIM strValue as Str;

 

strValue = "Hello, World!"; 'with trailing spaces

strResult = RTrim(strValue);

PRINT("RTrim(",strValue,") = ",strResult);

'Displays "RTrim(Hello, World!) = Hello, World!"

END SUB