Object variable or with block variable not set
Hi,
I'm a java developer trying to write some VB code to access a Java API I have written. I am getting this error when I try to call a method on the API.
I have included the code below.
thanks in advance for any help.
-
Dim vResult As java_util_Vector
Dim SearchResult As SearchFile2
Dim firstName As String
Dim lastName As String
Dim strResult As String
Private Sub Search_Click()
firstName = eIndex.fName.Text
lastName = eIndex.lName.Text
Set vResult = SearchResult.nameSearch(firstName, lastName)
strResult = vResult.elementAt(1)
MsgBox strResult
End Sub

