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

WordCap – PB Docs 2022 – PowerBuilder Library

WordCap – PB Docs 2022

WordCap

PowerScript function

Description

Capitalizes the first letter of each word in a passed script. It
sets the remaining letters in each word to lowercase.

Applies to

All text objects

Syntax

Argument

Description

text

String to be modified

Return value

String.

If it succeeds, returns the text passed in the function argument
with the first letter of each word in uppercase and the remaining letters
in lowercase. Returns null if an error occurs.

Examples

This example takes user-entered text from a SingleLineEdit control,
capitalizing the first letter in each word and setting the other letters
to lowercase, before passing it in a string variable:

The text joe MaCdonald would be rendered as Joe Macdonald by the
WordCap function.


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