Results 1 to 3 of 3

Thread: Including file

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    16
    I want imformation about Including file.
    I have scripts which I use many times in some asp file, so I want save those scripts in .inc file. But don't know how to call those scrips in .inc file.
    Is there any article I should read?
    Please advise.

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    I don't know how to do it with inc file, but you can
    do it with asp file(it should be the same).

    just put this
    <!-- #include file="path/name.asp" -->

    is an example:
    Code:
    <!-- #include file="populateArray.asp" -->
    and call your function.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    16
    Thanks.
    As far as I know, .inc file does same. You can write function in .inc file then put
    <!-- #include file="populateArray.inc" -->
    in .asp file from which you want to call the function.

    My question is, is it should be "function" always? I know how to call function, but just scripts.

    I got a feeling that there's no way to do so...

    Well, thanks anyway.

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