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

SetMessage – PB Docs 150 – PowerBuilder Library

SetMessage – PB Docs 150

SetMessage PowerScript function

Description

Sets an error message for an object of type Throwable.

Syntax

Argument

Description

throwableobject

Object of type Throwable for which you
want to set an error message.

newMessage

String containing the message you want
to set. Must be surrounded by quotation marks.

Return Values

None

Usage

Use to set a customized message on a user-defined exception
object. Although it is possible to use SetMessage to
modify the preset error messages for RuntimeError objects, this
is not recommended.

Examples

This statement is an example of a message set on
a user object of type Throwable:

This example uses SetMessage in
the try-catch block for a user-defined function that takes an input
value from one text box and outputs the arccosine for that value
into another text box:

See Also

GetMessage


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