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

Handling enumerated types – PB Docs 2022 – PowerBuilder Library

Handling enumerated types – PB Docs 2022

Handling
enumerated types

The GetEnumItemValue and GetEnumItemName functions allow you to
convert the name of an enumerated value to an integer value, and to
convert an integer value to the name of an enumerated value.

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

Notice that the second argument in the GetEnumItemValue call, the
enumerated value, must not have an appended exclamation mark (!).

To return an enumerated value from an extension to PowerScript, use
the SetLong function to set the value of the enumerated variable into
IPB_Value (you cannot use SetInt or SetShort).

To obtain an enumerated variable’s value, you can use GetInt or
GetShort as well as GetLong, as long as 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.


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