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

LeftA – PB Docs 2022 – PowerBuilder Library

LeftA – PB Docs 2022

LeftA

PowerScript function

Description

Temporarily converts a string from Unicode to DBCS based on the
current locale, then returns the specified number of bytes from the
string.

Syntax

Argument

Description

string

The string you want to search from left to right

n

A long specifying the number of bytes of the characters in
the return string

Return value

String.

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

Usage

LeftA replaces the functionality that Left had in DBCS environments
in PowerBuilder 9.

In SBCS environments, Left, LeftW, and LeftA return the same
results.


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