Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

RTrim

  • Last UpdatedJul 18, 2023
  • 1 minute read

Strips any trailing spaces from Str variable.

Syntax

RTrim(Str)

Str:

A string or expression that can represent a valid text value.

Return Value

Returns a String.

LTrim | Trim

Example

Dim strTest as String
Dim strResult as String
Dim lngStartLength as Long
Dim lngFinishLength as Long
strTest = "VBA "
lngStartLength = Len(strTest) ' returns 9
strResult = RTrim(strTest) ' returns "VBA"
lngStringLength = Len(strResult) ' returns 3

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in