Q61338: Docerr in MenuSet and MenuSetState in UI Toolbox of PDS 7.00
Article: Q61338
Product(s): See article
Version(s): 7.00 7.10 | 7.00 7.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | SR# S900412-65 docerr | mspl13_basic
Last Modified: 8-JAN-1991
Pages 546 and 547 of the "Microsoft BASIC 7.0: Language Reference" for
Microsoft BASIC Professional Development System (PDS) versions 7.00
and 7.10 incorrectly state that the subroutine MenuSetState treats -1
as a legal value for the parameter state%. The lowest legal value for
state% is 0. This is the scope of the MenuSetState routine. The
MenuSet subroutine should be called to remove an item from a menu.
The MenuSet subroutine, on Pages 545 and 546 of the same manual, is
also documented incorrectly because the lowest legal value of MenuSet
is actually -1, not 0. To make a menu item or menu title disappear,
you must call MenuSet with state% equal to -1.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.