Article ID: 57344
Article Last Modified on 8/16/2005
APPLIES TO
- Microsoft BASIC Professional Development System 7.1
- Microsoft BASIC Professional Development System 7.0
This article was previously published under Q57344
SUMMARY
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" (versions 7.0 and 7.1) manual to successfully use the User Interface (UI) Toolbox 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 (such as from the program on pages 551 and 552) 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.
Additional query words: BasicCom 7.00 7.10
Keywords: KB57344