This utility reads a menu definition from IDDBD and prints every selection on the menu that runs a report. It is a quick way to see which reports a menu offers.
00001 REM "This Utility will read thru IDDBD for a specific menu00002 REM "and print out all the seletion that run a Report00005 BEGIN00010 OPEN (1) "IDDBD"00020 READ RECORD (1,KEY="M"+"IDMENU2 "+"11") A$00030 M$=A$00040 WHILE LEN(M$)<DEC(A$(6,2)); READ RECORD (1) A$; M$=M$+A$; WEND00050 FOR X=18 TO LEN(M$)-18 STEP 30; IF M$(X+9,1)="R" PRINT M$(X+10,8) FI; NEXT XNotes
The menu name is part of the key in line 00020 (IDMENU2 in the example). Change it to the menu you want to list.