PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
AAFPopupMenuToString (Function)
In French: FAAMenuContextuelVersChaîne
Returns the list of options found in the popup menu actually displayed by the control.
Example
sAll is string = AAFPopupMenuToString(TABLE_NoName1)

FOR EACH STRING sOption OF sAll SEPARATED BY CR
sCaption is string = ExtractString(sOption, 1, TAB)
nID is string = ExtractString(sOption, 2, TAB)
sPos is string = ExtractString(sOption, 3, TAB)
Trace(sCaption + " - " + nID + " - " + sPos)
END
Syntax
<Result> = AAFPopupMenuToString(<Control>)
<Result>: Character string
List of options found in the popup menu of control. This list has the following format:
<Caption 1> + TAB + <Identifier 1> + TAB + <Position 1> + CR + ...
+ CR + <Caption N> + TAB + <Identifier N> + TAB + <Position N>
where:
  • Caption: Option caption.
  • Identifier: Option identifier.
    Note: This identifier can be used by AAFExecute to run the option directly.
  • Position: Option subscript in the menu. If the option is found in a sub-menu, this subscript has the following format:
    <Number of Main Option>.<Number of Sub-menu Option>
    For example, "4.5" for the option 5 of sub-menu 4.
<Control>: Character string (with or without quotes)
Name of control used.
Remarks
  • All options found in the popup menu are taken into account:
    • Options of system menu.
    • Menu options displayed specific to the AAFs (Automatic Application Features).
    • Custom options of popup menu.
  • Only the clickable options are listed.
  • If the control can display several menus, the last menu displayed is returned.
    For example, on a Table control:
    • The menu options of the table are listed by default.
    • If the popup menu of a column is displayed, the function will return the options found in the popup menu of the column.
Components
WINDEVReports and Queries wd230obj.dll
Linux wd230obj.so
See also
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment