1getitems(1F)                     FMLI Commands                    getitems(1F)
2
3
4

NAME

6       getitems - returns a list of currently marked menu items
7

SYNOPSIS

9       getitems [delimiter_string]
10
11

DESCRIPTION

13       The  getitems function returns the value of lininfo if defined, else it
14       returns the value of the name descriptor, for all currently marked menu
15       items.  Each  value  in  the list is delimited by delimiter_string. The
16       default value of delimiter_string is newline.
17

EXAMPLES

19       Example 1 A sample output of getitems command.
20
21
22       The done descriptor in the  following  menu  definition  file  executes
23       getitems  when  the user presses  ENTER (note that the menu is multise‐
24       lect):
25
26
27         Menu="Example"
28         multiselect=TRUE
29         done=`getitems ":" | message`
30         name="Item 1"
31         action=`message "You selected item 1"`
32         name="Item 2"
33         lininfo="This is item 2"
34         action=`message "You selected item 2"`
35         name="Item 3"
36         action=`message "You selected item 3"`
37
38
39
40
41       If a user marked all three items in this menu,  pressing   ENTER  would
42       cause the following string to be displayed on the message line:
43
44
45         Item 1:This is item 2:Item 3
46
47
48

NOTES

50       Because  lininfo is defined for the second menu item, its value is dis‐
51       played instead of the value of the name descriptor.
52

ATTRIBUTES

54       See attributes(5) for descriptions of the following attributes:
55
56
57
58
59       ┌─────────────────────────────┬─────────────────────────────┐
60       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
61       ├─────────────────────────────┼─────────────────────────────┤
62       │Availability                 │SUNWcsu                      │
63       └─────────────────────────────┴─────────────────────────────┘
64

SEE ALSO

66       attributes(5)
67
68
69
70SunOS 5.11                        5 Jul 1990                      getitems(1F)
Impressum