home *** CD-ROM | disk | FTP | other *** search
- /* SetItemActions - Set the action for all the items on a list, which
- must be on the current or a later page. The name of the list is set in
- the first line below; the action for each item is set in the do loop.
- (This macro would also work to set the actions for all the members of
- a group, but that is much less often needed.)
- */
-
- name = 'List1'
-
- list = searchname(':', name)
-
- if length(list) = 0 then do
- say 'Sorry, can''t find' name || '.'
- EXIT
- end
-
- do i = 1 to numelements(list)
- item = objectnumber(list,i)
- call setactionnone(item)
- end
-
- say 'Done!'
-