I wrote a dll in Visual Basic, and one of the functions takes an array by ref, to return a record to a VBScript page.
This is the call the VBscript Page:
Dim arr_mData() ... some more code
blnError = objData.GetRecord("DSN=dsnname", "tablename", 36, arr_mData())
and this is the signature of the called method:
Function GetRecord(ByVal strConn As String, ByVal strTbl As String, ByVal lngID As Long, ByRef arrData() As Variant) As Boolean
The array gets ReDimmed inside the function to accept the record fields.
The problem is, on returning to the ASP page code, the ASP script engine complains about a subscript out of range.
Does anybody know why this happens?
Any help is greatly appreciated...