Passing dynamic array to a dll - Please help

Author Message
enzont

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 6/16/2001
  • Location:
  • Status: offline
Passing dynamic array to a dll - Please help Saturday, June 16, 2001 7:23 AM (permalink)
0
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...


 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9