NOMAD Sample Window Code Version 5.8 DISCLAIMER These samples are excerpts from the sample code originally presented as part of the 1987 Users' Conference, and subsequently made an unsupported portion of the NOMAD Collection. These procedures are intended as SAMPLES, not TOOLS. They are offered on an AS-IS basis. WMLIST Provide a POP-UP window with a list of the currently loaded database MASTERS. Pressing enter closes the active window and exits WMLIST. Available functionkey actions include: FKEY 2 - CALL WILIST for master where cursor is positioned. FKEY 3 - Reposition window to current cursor position, leave window open, and exit WMLIST. FKEY 7 - Scroll up. FKEY 8 - Scroll down. WILIST -segmentname- Provide a POP-UP window with a list of the ITEMS and DEFINES for the segment reference. Pressing enter closes the active window and exits WILIST. Available functionkey actions include: FKEY 7 - Scroll up. FKEY 8 - Scroll down. FKEY 3 - Reposition window to current cursor position, leave window open, and exit WILIST. WPICK 'title' 'choice1' 'choice2' ... 'choice-n' Provide a pop-up window with a list of choices. The TITLE and CHOICE strings may be strings or &variables. The choice may be an &variable array. WCLOCK Provide a passive data display window with the current date and time. The first call opens it, the next closes it. WMONITOR Provide a passive data display window with &&ARU's, &&INSTANCE_COUNT, and TOT_CPU. The first call opens it, the next closes it. WFORM segment-name WFORM will build a form-based window for all the items in the specified segment. This form will exist only for this session; no permanent source code is generated. RMAINT RMAINT is a sample update procedure for a single master. It updates the master in the NAMES database. Available functionkey actions include: FKEY 2 - Insert an Instance. FKEY 3 - Quit. FKEY 4 - Locate an Instance. FKEY 5 - Change Instance data. FKEY 6 - Delete Instance. FKEY 7 - Previous Instance. FKEY 8 - Next Instance. FKEY 9 - First Instance. FKEY 10 - Last Instance. FKEY 12 - Cancel Current action. FKEY 13 - Help. (See WTUPDATE in another directory of this diskette for a tool which generates update procedures somewhat similiar to this). WPUSH WPUSH closes all currently open windows, saving a list of them for later opening by WPOP. WPOP WPOP will open the list of windows closed by WPUSH. WASK question Ampervariable