Name Redefined

Results 1 to 2 of 2

Thread: Name Redefined

  1. #1
    christ Tong Guest

    Default Name Redefined

    Hi my saver,<BR> I got a problem with &#060;!-- #INCLUDE FILE="connectDB.asp" --&#062; . In one particular page, I need to include a few files, and some of these files will include the same file "connectDB.asp". So, there is an error displayed: Error DIM -- Name redefined in "connectDB.asp". <BR><BR> I tried to set a variable "includeConn = &#039;Y&#039;" when I First include the file "connectDB.asp", and check if this variable is NULL at beginning of all other files which shall include the "connectDB.asp"; if the variable is still NULL, which means file has not been included before, I will make inclusion by simply:<BR><BR>&#060;% If ( includeConn = "" ) Then %&#062;<BR> &#060;!-- #INCLUDE FILE="connectDB.asp" --&#062;<BR>&#060;% End IF %&#062; <BR>but effort still in vain.<BR><BR> So, anyway to avoid the problem of Name Redefined ? I know in C++, there is a command #IFNDEF ... #DEFINE ... #ENDIF <BR><BR> Thank you for your time and patience.<BR>Regards<BR>Tong

  2. #2
    Join Date
    Dec 1969

    Default RE: Name Redefined

    If I am coorect in my thinking, "Name redefined" basically means that somewhere you have declared a variable in two places on the same page or in any linked include files.

Posting Permissions

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