Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - promptupper() find prompt containing specified upper case letter http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 promptupper()       Find prompt containing specified upper case letter
------------------------------------------------------------------------------
 Declaration
   menu.hdr

 Syntax
   func int promptupper extern
   param value byte bSearchChar

 Arguments
   uSearchChar is the ASCII code of the search character.

 Return
   The identifier number of the first prompt containing the specified
   character, or zero if a matching prompt is not found.

 Description
   The promptupper() function scans the currently active prompt messages and
   returns the identifier of the first prompt which contains the
   specified character in upper case. If no matching prompt is found,
   the function returns 0.

 Example
   #define EXAMPLE_MENU
   #include example.hdr

   proc Test_promptupper
   //  Lookup the first prompt which contains an upper case 'D'
   clear
   @ 01, 02 prompt " File   "
   @ 02, 02 prompt " moDify "
   @ 03, 02 prompt " Quit   "
   ? promptupper( 'D' )           // 2
   wait
   endproc

   proc main
   Test_promptupper()
   endproc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson