>do mainmenu.mpr >read valid .f. > >select apptable && cursor from the app table, with the appropiate filters > >* re-define the empty bars >nbar=0 >scan > *-- this becomes a 'do case' structure if you have submenus > nbar=nbar+1 > defi bar nbar of applications prompt ' '+alltrim(sky_menu.win_title)+' ' OOPs!! <b> defi bar nbar of applications prompt ' '+alltrim(mprompt)+' '</b> >endscan > >*-- release unused bars - also a 'do case' structure if you have submenus >do while nbar<=26 > nbar=nbar+1 > release bar nbar of applications >enddo > >*-- define bar command >on selection popup applications do do_app with prompt() > >*------------------- >procedure do_app >para barprompt > >loca for mprompt=subs(barprompt,2,len(mprompt)) >do (mprogram) > >