D
Don Miller
In a classic ASP mode, I try to make a call on a public VB COM object
function/method like this:
Dim params(5) 'As Variant
params(0) = "test"
params(1) = ""
params(2) = ""
params(3) = 44
params(4) = 1168
params(5) = 5
Dim errorReport 'As String
Dim objErrorLog 'As Errors.ErrorLog
set objErrorLog = Server.CreateObject("Errors.ErrorLog")
errorReport = objErrorLog.writeError("Source of Error", "Error Description",
"Error Number", "Error Class", "Error Method", params)
Set objErrorLog = Nothing
The function is defined like this:
Public Function writeError(ByVal errSource As String, ByVal errDescription
As String, ByVal errNumber As String, ByVal component As String, ByVal
method As String, ByVal aParams As Variant) As String
However, I get the error message "Invalid Procedure Call or Argument" and
can't seem to figure out why.
Any ideas? Thanks.
function/method like this:
Dim params(5) 'As Variant
params(0) = "test"
params(1) = ""
params(2) = ""
params(3) = 44
params(4) = 1168
params(5) = 5
Dim errorReport 'As String
Dim objErrorLog 'As Errors.ErrorLog
set objErrorLog = Server.CreateObject("Errors.ErrorLog")
errorReport = objErrorLog.writeError("Source of Error", "Error Description",
"Error Number", "Error Class", "Error Method", params)
Set objErrorLog = Nothing
The function is defined like this:
Public Function writeError(ByVal errSource As String, ByVal errDescription
As String, ByVal errNumber As String, ByVal component As String, ByVal
method As String, ByVal aParams As Variant) As String
However, I get the error message "Invalid Procedure Call or Argument" and
can't seem to figure out why.
Any ideas? Thanks.