option explicit error

Results 1 to 2 of 2

Thread: option explicit error

  1. #1
    kabak Guest

    Default option explicit error

    &nbsp;<BR>I&#039;ve got an include file that opens up a connection to a SQL database. In that file, I declare OPTION EXPLICIT. This include file is in the root directory of my server. When used in other root directory files, it works fine. But I just used it in a file in the /news directory of the server by calling &#060;!--#include file="../dbConn.asp"--&#062;, and I get the following errror:<BR><BR>Expected statement <BR><BR>/bmfnet/dbConn.asp, line 2 <BR><BR>OPTION EXPLICIT<BR>^<BR><BR>Anyone have any idea what&#039;s going on?<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: option explicit error

    Check to make sure that you are not saying OPTION EXPLICIT twice - perhaps in two includes, or in the main file and an include...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts