DOCUMENT:Q190251 07-AUG-1998 [vbwin] TITLE :BUG: Option Explicit Statement Is Not Added by a DHTML Page PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:6.0 OPER/SYS:WINDOWS KEYWORDS:kbVBp600bug kbInternet kbPageDesigner ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0 --------------------------------------------------------------------- SYMPTOMS ======== The DHTML Page Designer does not add an Option Explicit statement to code by default. With this statement, Visual Basic requires you to declare variables before you use them. RESOLUTION ========== To add Option Explicit to your DHTML Page Designer pages: 1. Right-click on DHTML page in the Visual Basic Project window. 2. Select View Code from the pop-up menu. 3. Insert the text "Option Explicit" as the very first line. 4. Repeat this process for all DHTML pages in the project and every time you create a new DHTML page. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. REFERENCES ========== Please see the following Microsoft Knowledge Base article for more information on the DHTML Page Designer: ARTICLE-ID: Q190249 TITLE : DHTML Page Designer Section of VB6 Readmevb.htm Additional query words: kbPageDesigner kbInternet kbVBp600bug kbdsi kbDSupport kbVBp ====================================================================== Keywords : kbVBp600bug kbInternet kbPageDesigner Version : WINDOWS:6.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending ============================================================================= 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 1998.