× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed, 24 Nov 2004, Chris Wolcott wrote:

> Can anyone tell me how to create a menu using the CRTMNU command?  I can
> create one using option 17 on PDM:
>

It depends on what type of menu you want -- but SDA always creates a
"display file menu."

This type of menu has 3 objects involved:

   *MENU object -- created with CRTMNU
   *FILE (display file) object -- create with CRTDSPF
   *MSGF object -- created with CRTMSGF & ADDMSGD

The *MENU object holds settings, like, the type of menu (*DSPF) the
associate display file name, the length of the command line, etc.  It's
really just a bunch of settings and glue... just part of the equasion.

The piece that I think you're missing is the message file object.  For
every option in the MyMenuQQ source member, you need to add a message ID
to the message file.

For option number 1, you add msgid USR0001.  and set the 1st level text to
the command that needds to be run... the same for options 2-99 as
required.

Make sense?

I did write some sample code that does this in my newsletter.  If you've
got a professional membership to the iSeries Network, you can read that
article here:
  http://www.iseriesnetwork.com/article.cfm?ID=18524


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.