My question is: How do you call a vbscript function that is inside a .vbs file in a web page?
here is where I'm including the .vbs file:
The file is found when attempting to make the call, however it gives a Type Mismatch: MakeTable when i run the webpage
<% MakeTable "HistoryTable",rs2,False,"","TitleText" %>
Here is the function definition i was given:
public function MakeTable(tableClass,recordSet,ShowHeaders,FriendlyHeaderNames,TableTitle) public function MakeTable(String,recordset,Boolean,Array,String)
and here is the error:
Microsoft VBScript runtime
Description: Type mismatch: 'MakeTable'
I have tried using EXECUTE, tried renaming the file to see if possibly that was causing an error. Nothing is working. I'm thinking that its just not possible to call a function from vbs files like you can from .js files