home *** CD-ROM | disk | FTP | other *** search
- C=MENU_CTC+-4
- IF SEC_SHIFT=1.AND.FLAG_SUB<>0
- COLOR_SELE=SELECOLOR
- SET COLOR TO &COLOR_SELE
- @ MENU_ROW,MENU_COL SAY TRIM(MENU_MEA)
- MENUPATH=MENUPATH+CHR(MENU_CTC+64)
- GO TOP
- SEEK MENUPATH
- DO DS&MENUPATH
- MENU_CTC=1
- ENDIF
- SEC_SHIFT=0
- LOOP
- CASE BUFF_CHAR=19 .OR. BUFF_CHAR=5
- IF BUFF_CHAR=19.AND.LEN(MENUPATH)=2
- SET COLOR TO &BKSCRCOL
- @ 1,0 CLEAR TO 23,79
- MENU_CHR=SUBSTR(MENUPATH,LEN(MENUPATH),1)
- MENU_CTC=ASC(MENU_CHR)-64
- MENUPATH=SUBSTR(MENUPATH,1,LEN(MENUPATH)-1)
- SEEK MENUPATH
- SKIP+MENU_CTC-1
- SEC_SHIFT=1
- ELSE
- SEC_SHIFT=0
- ENDIF
- COLOR_WIN=WINCOLOR
- SET COLOR TO &COLOR_WIN
- @ MENU_ROW,MENU_COL SAY TRIM(MENU_MEA)
- SKIP-1
- IF .NOT.BOF().AND.MENU_P=MENUPATH
- MENU_CTC=MENU_CTC-1
- ELSE
- GO TOP
- SEEK MENUPATH
- MENU_CTC=0
- DO WHILE .NOT.EOF().AND.MENU_P=MENUPATH
- SKIP
- MENU_CTC=MENU_CTC+1
- ENDDO
- IF EOF()
- GO BOTT
- ELSE
- SKIP-1
- ENDIF
- ENDIF
- IF SEC_SHIFT=1.AND.FLAG_SUB<>0
- COLOR_SELE=SELECOLOR
- SET COLOR TO &COLOR_SELE
- @ MENU_ROW,MENU_COL SAY TRIM(MENU_MEA)
- MENUPATH=MENUPATH+CHR(MENU_CTC+64)
- GO TOP
- SEEK MENUPATH
- DO DS&MENUPATH
- MENU_CTC=1
- ENDIF
- SEC_SHIFT=0
- CASE BUFF_CHAR=13