Microsoft KB Archive/103834: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
Line 44: Line 44:
== SUMMARY ==
== SUMMARY ==


According to the &quot;Commands &amp; Functions&quot; manual for FoxBASE+/Mac, use of the style metacharacter (&lt;) followed by &quot;B&quot;, &quot;I&quot;, &quot;U&quot;, &quot;O&quot;, or &quot;S&quot; causes a menu to have the style that corresponds to the letter used. This information applies only to menu options (the choices on a menu popup), not to the main menu bar. If the style metacharacter is used with the main menu bar, the &quot;&lt;&quot; and the letter following it will be placed on the menu bar.<br />
According to the "Commands &amp; Functions" manual for FoxBASE+/Mac, use of the style metacharacter (&lt;) followed by "B", "I", "U", "O", or "S" causes a menu to have the style that corresponds to the letter used. This information applies only to menu options (the choices on a menu popup), not to the main menu bar. If the style metacharacter is used with the main menu bar, the "&lt;" and the letter following it will be placed on the menu bar.<br />
<br />
<br />
NOTE: The letters following the style metacharacter must be in uppercase.
NOTE: The letters following the style metacharacter must be in uppercase.
=== EXAMPLE ===
=== EXAMPLE ===


<pre class="codesample"> *PROGRAM FILE NAME &quot;TEST.PRG&quot;
<pre class="codesample"> *PROGRAM FILE NAME "TEST.PRG"
         SET PROCEDURE TO TEST.PRG
         SET PROCEDURE TO TEST.PRG
         MENU BAR &quot;Position&lt;S;Record;Utilites&quot;
         MENU BAR "Position&lt;S;Record;Utilites"
         MENU 2,&quot;Open/O&lt;S&lt;B;Close&lt;I;(-;(Continue;Locate/L&lt;O&quot;
         MENU 2,"Open/O&lt;S&lt;B;Close&lt;I;(-;(Continue;Locate/L&lt;O"
         x=.f.
         x=.f.
         ON MENU DO MENUPROC WITH MENU(0), MENU(1)
         ON MENU DO MENUPROC WITH MENU(0), MENU(1)

Revision as of 09:57, 20 July 2020

Knowledge Base


Style Metacharacter Not for Use with Main Menu Bar

PSS ID Number: 103834

Article Last Modified on 6/29/2004



The information in this article applies to:

  • Microsoft FoxBASE+ for Macintosh 2.01



This article was previously published under Q103834

SUMMARY

According to the "Commands & Functions" manual for FoxBASE+/Mac, use of the style metacharacter (<) followed by "B", "I", "U", "O", or "S" causes a menu to have the style that corresponds to the letter used. This information applies only to menu options (the choices on a menu popup), not to the main menu bar. If the style metacharacter is used with the main menu bar, the "<" and the letter following it will be placed on the menu bar.

NOTE: The letters following the style metacharacter must be in uppercase.

EXAMPLE

 *PROGRAM FILE NAME "TEST.PRG"
        SET PROCEDURE TO TEST.PRG
        MENU BAR "Position<S;Record;Utilites"
        MENU 2,"Open/O<S<B;Close<I;(-;(Continue;Locate/L<O"
        x=.f.
        ON MENU DO MENUPROC WITH MENU(0), MENU(1)

        DO WHILE .NOT. X
             READ
        ENDDO

        PROCEDURE MENUPROC
        PARAMETER Y,Z

        DO CASE
             CASE Y=2 .AND. Z=2
                  X=.T.
        ENDCASE

   *END OF PROGRAM
                


Additional query words: 2.01 meta character submenu

Keywords: kbinfo KB103834
Technology: kbAudDeveloper kbFoxBASE201Mac kbFoxBASESearch kbFoxproSearch kbHWMAC kbOSMAC