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 - pickhotch() return the current hot-key lead-in character http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 pickhotch()         Return the current hot-key lead-in character
------------------------------------------------------------------------------
 Declaration
   pick.hdr

 Syntax
   func uint pickhotch extern
   param value _LIST pList

 Arguments
   pList is a list pointer.

 Return
   The ASCII code of the current hot key indicator character for list
   displays.

 Description
   The pickhotch() function returns the code of the currently defined
   lead-in character. You may need this function to write your own pick list
   display routines.

   By default, the ampersand character (&) is taken as the lead-in character
   for hot-keys by the pickdisp() and pickstring() functions. The default
   can be redefined by the picksethotch() function.

   This function is normally used with string lists to be displayed via the
   pickdisp() function.

 Example
   #define EXAMPLE_LIST
   #include example.hdr

   proc Test_pickhotch
   vardef
      _SLIST pList
   enddef
   pList := pickinit()
   ? chr( pickhotch( pList ) )                // output: &
   picksethotch( pList, '$' )
   ? chr( pickhotch( pList ) )                // output: $
   pickclear( pList )
   endproc

   proc main
   Test_pickhotch()
   endproc

See Also: picksethotch()

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