Hi im using the follwoing code to call a sub/function which is in a different file, but get an error message for the inc file. Basically what i want to do is to pass the result_query_id & result_run_id variables to the function, which will calculate the number and pass that number back to the main page and save it into the variable "answer"
Ok i changed the lines to Function, but i still get the same error message:
Code:
Microsoft VBScript compilation error '800a03ea'
Syntax error
/cosa5web/callSpeed.inc, line 2
Function Speed_Per_Ball (result_query_id, result_run_id)
^
1. move the include dirctive to the very top of your asp file
2. remove the space between <!-- and #Include <!-- #INCLUDE FILE="callSpeed.inc"-->
should be <!--#INCLUDE FILE="callSpeed.inc"-->
finally, did u post all of the code of the include file.
oh yeah, and it should have an asp extension, not inc.
also, lets see all of the code from the calling page
Bookmarks