S
Scott Howell
How can I do this without turning Strict Off!!!!
Sub GetBatchInfo()
Dim oARGet As Object = CreateObject("ProtrackAR.ARGet"), aBatchInfo
As String()
If CStr(ARStatusOldBatchID) = "0" Then
aBatchInfo = oARGet.GetActiveBatchForUser(ARStatusUserID) <--
Error HERE!
If IsArray(aBatchInfo) Then
If aBatchInfo(1) <> "" Then
ARStatusBatchID = DirectCast(aBatchInfo(1), Integer)
End If
If Trim(aBatchInfo(0)) <> "" Then
ARStatusPostingDate = FormatGMTDate(aBatchInfo(0))
bARStatusBatchHasPostingDate = True
End If
End If
End If
If CStr(ARStatusBatchID) = "0" Then
ARStatusBatchIDDisplay = "None"
Else
ARStatusBatchIDDisplay = CStr(ARStatusBatchID)
ARStatusBatchTextTitle = "Click here to toggle out of BatchID "
& ARStatusBatchID
End If
End Sub
Sub GetBatchInfo()
Dim oARGet As Object = CreateObject("ProtrackAR.ARGet"), aBatchInfo
As String()
If CStr(ARStatusOldBatchID) = "0" Then
aBatchInfo = oARGet.GetActiveBatchForUser(ARStatusUserID) <--
Error HERE!
If IsArray(aBatchInfo) Then
If aBatchInfo(1) <> "" Then
ARStatusBatchID = DirectCast(aBatchInfo(1), Integer)
End If
If Trim(aBatchInfo(0)) <> "" Then
ARStatusPostingDate = FormatGMTDate(aBatchInfo(0))
bARStatusBatchHasPostingDate = True
End If
End If
End If
If CStr(ARStatusBatchID) = "0" Then
ARStatusBatchIDDisplay = "None"
Else
ARStatusBatchIDDisplay = CStr(ARStatusBatchID)
ARStatusBatchTextTitle = "Click here to toggle out of BatchID "
& ARStatusBatchID
End If
End Sub