Hey guys,
I'm calling a function that's supposed to return an array. Here's the code:
Just to clarify, StartEnrollment returns an array of type ConnectorInfo and then I try to loop over the returned array.
And here's the output:
connectorsToEnroll not Null
0
The array returned is not nothing, however, it's length is 0? What does this mean?
Being that I'm not proficient in VB.Net, it's highly likely that it's a syntax problem
Your assistance is greatly appreciated,
Aron-Zvi
I'm calling a function that's supposed to return an array. Here's the code:
VB.NET:
Dim connectorsToEnroll() As TMSWebAPI.ConnectorInfo = CallWebService.StartEnrollment(sessionHandle, formRequestUser, tokenSerial, TMSWebAPI.EnrollmentDataUsage.UseNewEnrollmentData)
If connectorsToEnroll IsNot Nothing Then
Response.Write("connectorsToEnroll not Null<br>")
Response.Write(connectorsToEnroll.Length.ToString() + "<br>")
For Each cInfo As TMSWebAPI.ConnectorInfo In connectorsToEnroll
Response.Write(cInfo.ConnectorID)
Next
Else
Response.Write("connectorsToEnroll Null<br>")
End If
Just to clarify, StartEnrollment returns an array of type ConnectorInfo and then I try to loop over the returned array.
And here's the output:
connectorsToEnroll not Null
0
The array returned is not nothing, however, it's length is 0? What does this mean?
Being that I'm not proficient in VB.Net, it's highly likely that it's a syntax problem
Your assistance is greatly appreciated,
Aron-Zvi