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

GetEnumItemValue – PB Docs 2021 – PowerBuilder Library

GetEnumItemValue – PB Docs 2021

GetEnumItemValue

Description

Obtains the value of an enumerated variable.

Syntax

Return value

Long.

Examples

This example gets the numeric value for the boolean! enumerated
value, then uses it to return the string value:

Usage

GetEnumItemValue and GetEnumItemName support enumerated types.
They allow you to convert the name of an enumerated value, a string with
an appended exclamation mark (!), to an integer value, and vice
versa.

The ! character must be omitted

When you use these functions, the enumItemName should not use
the appended exclamation mark (!) character.

To return an enumerated value from an extension to PowerScript,
you must use the SetLong function to set the value of the enumerated
variable into IPB_Value. Using SetInt or SetShort fails. However, you
can use GetInt or GetShort as well as GetLong to obtain the enumerated
variable’s value, assuming the value is in the appropriate range. For
example, if you attempt to use GetInt to obtain a value that is more
than 32767, the returned value is truncated.

See also

GetEnumItemName


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