Name

RTrim Function

Class

Microsoft.VisualBasic.Strings

Syntax

RTrim(string)
string (required; String)

A valid string expression

Return Value

String

Description

Removes any trailing spaces from string

Rules at a Glance

If string contains a Nothing, RTrim returns Nothing.

Get VB.NET Language in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.