Results 1 to 4 of 4

Thread: ReDeclare Constants

  1. #1

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188

    ReDeclare Constants

    Hey All,

    How can i re-declare a constant without getting the name redefined error?

    Please any help would be great.
    b

  2. #2
    Member
    Join Date
    May 2003
    Posts
    59
    Hmmm... if "re-declaring" a constant was allowed, it wouldn't be a constant would it... it would be a variable!


  3. #3

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Yeah sorry it's now something to do with the includes:

    VB Code:
    1. <%
    2.  
    3. SELECT CASE Request.QueryString("skinfile")
    4. CASE ""
    5. %>
    6. <!-- #INCLUDE FILE="skin_file.asp" -->
    7. <%
    8. CASE "aqua"
    9. %>
    10. <!-- #INCLUDE FILE="skin_file_aqua.asp" -->
    11. <%
    12. END SELECT
    13. %>

    Now you cant do that can you?
    Some people say you can but you cant.
    So how do you use dynamic includes?

    b

  4. #4
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Malaysia
    Posts
    345
    Last edited by sinha; Jun 3rd, 2003 at 12:58 AM.
    Thanks.

Posting Permissions

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



Click Here to Expand Forum to Full Width