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

AscA – PB Docs 2021 – PowerBuilder Library

AscA – PB Docs 2021

AscA

PowerScript function

Description

Converts the first character of a string to its ASCII integer
value.

Syntax

Argument

Description

string

The string for which you want the ASCII value of the first
character

Return value

Integer.

Returns the ASCII value of the first character in string. If string
is null, AscA returns null.

Usage

You can use AscA to find out the case of a character by testing
whether its ASCII value is within the appropriate range. A separate
function, Asc, is provided to return the Unicode code point of a
character.

Examples

This statement returns 65, the ASCII value for uppercase A:

This example checks if the first character of string ls_name is
uppercase:

This example is a function that converts an array of integers into a
string. Each integer specifies two characters. Its low byte is the first
character in the pair and the high byte (ASCII * 256) is the second
character. The function has an argument (iarr) which is the integer
array:

For sample code that builds the integer array from a string, see
Mid.

See also

Asc

CharA

Mid

AscA method for DataWindows in the section called “AscA” 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