Hi
I'm trying to pass an array to a stored procedure in PL/SQL. I'm having an issue with the following sub, when I'm in the loop, I can read the value of the COArray (by hovering over it), but when I try to pass it to the module, the subscript is out range. Any ideas?
Here's the sub:
Private Sub cmdSubmitReassign_Click()
Dim COArray() As String
Dim i As Long
For i = 0 To lstReassign.ListCount - 1
ReDim Preserve COArray(i)
COArray(i) = D_Combo_Code(2, lstReassign.ItemData(i))
Next
Call ReassignIN(A_Combo_Code(cboSource.ListIndex), _
COArray(i), _
B_Combo_Code(cboFolderType.ListIndex), _
C_Combo_Code(cboFolderStatus.ListIndex), _
txtBalGreater.Text)
End Sub
Thanks for any suggestions.
I'm trying to pass an array to a stored procedure in PL/SQL. I'm having an issue with the following sub, when I'm in the loop, I can read the value of the COArray (by hovering over it), but when I try to pass it to the module, the subscript is out range. Any ideas?
Here's the sub:
Private Sub cmdSubmitReassign_Click()
Dim COArray() As String
Dim i As Long
For i = 0 To lstReassign.ListCount - 1
ReDim Preserve COArray(i)
COArray(i) = D_Combo_Code(2, lstReassign.ItemData(i))
Next
Call ReassignIN(A_Combo_Code(cboSource.ListIndex), _
COArray(i), _
B_Combo_Code(cboFolderType.ListIndex), _
C_Combo_Code(cboFolderStatus.ListIndex), _
txtBalGreater.Text)
End Sub
Thanks for any suggestions.