Q57344: "Subscript out of Range in Quick Library Module: WINDOW" Error
Article: Q57344
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# S891207-24 docerr | mspl13_basic
Last Modified: 8-JAN-1991
The following COMMON SHARED statement should be added to the global
array declarations found on Page 550 of the "Microsoft BASIC 7.0:
Language Reference" manual (for 7.00 and 7.10) to successfully use the
User Interface (UI) Toolbox's WINDOW.BAS source code file:
COMMON SHARED /uitools/GloWindowStack() AS INTEGER
The order of COMMON SHARED statements is important. The above
statement should be inserted as follows:
COMMON SHARED /uitools/GloWindow() AS WindowType
COMMON SHARED /uitools/GloButton () AS ButtonType
COMMON SHARED /uitools/GloEdit() AS EditFieldType
COMMON SHARED /uitools/GloStorage() AS WindowStorageType
COMMON SHARED /uitools/GloWindowStack() AS INTEGER
COMMON SHARED /uitools/GloBuffer$()
If this COMMON SHARED statement is missing from a program that uses
the WINDOW.BAS source code file, the program generates the error
message "Subscript out of range in Quick library module: WINDOW" on
the first call to a WINDOW.BAS procedure. This error will probably
occur on the call to WindowInit because it must be the first
WINDOW.BAS procedure called.
This information applies to Microsoft BASIC Professional Development
System (PDS) versions 7.00 and 7.10 for MS-DOS.
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.