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

Right – PB Docs 150 – PowerBuilder Library

Right – PB Docs 150

Right PowerScript function

Description

Obtains a specified number of characters from the end of a
string.

Syntax

Argument

Description

string

The string from which you want characters
returned

n

A long whose value is the number of characters
you want returned from the right end of string

Return Values

String. Returns the rightmost n characters
in string if it succeeds and the empty string
(“”) if an error occurs. If any argument’s value is null, Right returns null. If n is
greater than or equal to the length of the string, Right returns
the entire string. It does not add spaces to make the return value’s
length equal to n.

Examples

This statement returns RUTH:

This statement returns BABE RUTH:

See Also

  • Left, Mid, Pos, Right method
    for DataWindows in the DataWindow Reference or online Help


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