Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

RightTrim – PB Docs 2019 – PowerBuilder Library

RightTrim – PB Docs 2019

RightTrim

PowerScript function

Description

Removes spaces from the end of a string.

Syntax

Argument

Description

string

The string you want returned with trailing blanks
deleted

removeallspaces

A boolean indicating that all types of spaces should be
deleted

Return value

String. Returns a copy of string with trailing blanks deleted if it
succeeds and the empty string (“”) if an error occurs. If any argument’s
value is null, RightTrim returns null.

Usage

If you do not include the optional removeallspaces argument or its
value is false, only the space character (U+0020) is removed from the
string.

If the removeallspaces argument is set to true, all types of space
characters are removed. See LeftTrim
for a list of space characters.

Examples

This statement returns RUTH if all the trailing blanks are space
characters:

This statement returns RUTH if the trailing blanks include other
types of white space characters:

See also

LeftTrim

Trim

RightTrim method for DataWindows in the section called “RightTrim” in DataWindow Reference.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x