S
StinkyDuck
The code below errors with the following message:
Object reference not set to an instance of an object.
I realize the the object is not instantiated but I can't seem to figure out
how to instantiate the object.
If I change the code to:
Dim MyParams() As mapItem = New mapItem
Then I get the following error on the SearchCandidates line.
Error 3 Value of type 'TaleoTest.TaleoWebAPI.mapItem' cannot be converted to
'1-dimensional array of TaleoTest.TaleoWebAPI.mapItem'.
Public Function SearchCandidates(ByVal nDays As Integer) As
SearchResultArr
Dim Result As SearchResultArr = New SearchResultArr
Dim MyParams(1) As mapItem
MyParams(0).key = "updatedWithin"
MyParams(0).value = nDays
SearchCandidates = vTaleoWebAPI.searchCandidate(vTaleoSessionID,
MyParams)
End Function
Object reference not set to an instance of an object.
I realize the the object is not instantiated but I can't seem to figure out
how to instantiate the object.
If I change the code to:
Dim MyParams() As mapItem = New mapItem
Then I get the following error on the SearchCandidates line.
Error 3 Value of type 'TaleoTest.TaleoWebAPI.mapItem' cannot be converted to
'1-dimensional array of TaleoTest.TaleoWebAPI.mapItem'.
Public Function SearchCandidates(ByVal nDays As Integer) As
SearchResultArr
Dim Result As SearchResultArr = New SearchResultArr
Dim MyParams(1) As mapItem
MyParams(0).key = "updatedWithin"
MyParams(0).value = nDays
SearchCandidates = vTaleoWebAPI.searchCandidate(vTaleoSessionID,
MyParams)
End Function