Hello,
In VB 6, I used the following code to access the view finder.
What would the equivalent to this be in VB.NET? I have searched but have not found a solution.
Thanks.
In VB 6, I used the following code to access the view finder.
Code:
Dim oFind As AccpacFinder.ViewFinder
Set oFind = New AccpacFinder.ViewFinder
oFind.Session = cmSess
oFind.DisplayName = CSCOMPANY.Name
oFind.ViewID = "AR0024"
oFind.ViewOrder = 0
oFind.SearchFieldIDs = Array(1, 2, 3)
oFind.DisplayFieldIDs = Array(1, 2, 3)
oFind.ReturnFieldIDs = Array(1, 2)
oFind.Filter = ""
oFind.Finder
If Not IsEmpty(oFind.ReturnFieldValues) Then
If Len(oFind.ReturnFieldValues(0)) > 0 Then
txtID.text = Trim$(oFind.ReturnFieldValues(0))
End if
End if
Set oFind = Nothing
What would the equivalent to this be in VB.NET? I have searched but have not found a solution.
Thanks.