Form.ChooseFromMenu

Syntax:

ChooseFromMenu(<ListOfValues>, <FormElement>)

Parameters:

<ListOfValues> (required)

Type: ValueList.
Value list containing values from which selection is made.

<FormElement> (optional)

Form element near which the dropdown list will be opened. For some elements (spreadsheet document, table box), the dropdown list will be shown near the active area. If not specified, the active form element will be selected.
Note: Do not specify command bar or submenu buttons as values of this parameter.

Returned value:

Type: ValueListItem; Undefined.
Value selected from the menu or Undefined, if the user has made no selection.

Description:

Opens menu for selecting value. The values list assigns the set of selection values. Menu will be positioned near the transferred form element or the active area near it.

Availability:

Thick client.

Note:

If tags or pictures are indicated in the list of values, then they also display in the menu.

Example:

List = New ValueList;
List.Add("Delivery",,True);
List.Add("Unloading",,False);
List.Add("Picture",,,PictureLib.Picture1);
Type = ChooseFromMenu(List, Controls["Button1"]);


    

1C:Enterprise Developer's Community