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

GetBooleanValue – PB Docs 2022 – PowerBuilder Library

GetBooleanValue – PB Docs 2022

GetBooleanValue

Description

Obtains the value of a PBDOM_ATTRIBUTE object in boolean
form.

Syntax

Argument

Description

pbdom_attribute_name

The name of the PBDOM_ATTRIBUTE

Return value

Boolean.

The following table lists the PBDOM_ATTRIBUTE string values that
are accepted as boolean and the corresponding return values from the
GetBooleanValue method.

PBDOM_ATTRIBUTE string value

GetBooleanValue

1

true

0

false

TRUE

true

FALSE

false

ON

true

OFF

false

YES

true

NO

false

Strings are treated without case sensitivity. If no conversion can
occur, the GetBooleanValue method throws an exception.

Throws

EXCEPTION_DATA_CONVERSION — If data conversion fails.

Examples

The GetBooleanValue can be used to evaluate a PBDOM_ATTRIBUTE
object as follows:

The BuildFromString method is used to create a PBDOM_DOCUMENT
object, pbdom_doc, using an XML string. The attribute value of the root
element of pbdom_doc is assigned to the PBDOM_ATTRIBUTE object
pbdom_attr. The attribute value, on, is evaluated with the
GetBooleanValue method. A message box reports the return value of the
GetBooleanValue method.

See also

SetBooleanValue


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