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

Asc – PB Docs 2019 – PowerBuilder Library

Asc – PB Docs 2019

Asc

DataWindow expression function

Description

Converts the first character of a string to its Unicode code point.
A Unicode code point is the numerical integer value given to a Unicode
character.

Syntax

Argument

Description

string

The string for which you want the code point value of
the first character

Return value

Unsigned integer. Returns the code point value of the first
character in string.

Usage

Use Asc to test the case of a character or manipulate text and
letters.

To find out the case of a character, you can check whether its code
point value is within the appropriate range.

Examples

This expression for a computed field returns the string in code_id
if the code point value of the first character in code_id is A
(65):

This expression for a computed field checks the case of the first
character of lname and if it is lowercase, makes it uppercase:

See also

Char

WordCap

Asc in the section called “Asc” in PowerScript 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