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.
Controls
All text objects
Syntax
|
1 |
<span>WordCap</span> ( <span>text</span> ) |
|
Argument |
Description |
|---|---|
|
text |
String to be modified |
Return Values
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:
|
1 |
string ls_fullname |
|
1 |
ls_fullname = <span>WordCap</span> (sle_1.text) |
The text joe MaCdonald would
be rendered as Joe Macdonald by
the WordCap function.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest