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

PBGetMenuString – PB Docs 2018 – PowerBuilder Library

PBGetMenuString – PB Docs 2018

PBGetMenuString

PowerScript function

Description

Gets the name of the item at a given position in a menu.

Syntax

Argument

Description

hmenu

A long for the menu handle

nPos

An integer for the position of the menu item,
counting from 0 at the leftmost or topmost position

caption

A string passed by reference that captures the name
(Text property) of the menu item

nMaxLength

An integer that sets the maximum length of the value
passed in the caption argument

Return value

Long. Returns 1if it succeeds and -1 if an error occurs. If any
argument is null, PBGetMenuString returns null.

Usage

Use PBGetMenuString to get the name of a menu item. This function is
useful for some automated testing programs that cannot get menu item names
from the Text property for menus that use the contemporary style.

Examples

This statement gets the first menu item of the submenu of the w_main
window using the GetMenu and GetSubMenu WIN32 API functions from the
user.dll library:

This example assumes you have made the following Local External
Functions declarations:


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