![]() | |
ConneXionFindProspectsByCriteria Method |
Namespace: ConneXion
public ConneXionResult FindProspectsByCriteria( Prospect Prospect, ref Prospect[] Prospects )
MaxCount: This field limits the number of records returned when calling FindProspectsByCriteria to avoid time out issues. Once MaxCount is set, additional code can be added to see if there are additional records to be returned and loop thru those records.
Dim oProspect As New ConneXion.Prospect Dim oConneXion As New ConneXion.ConneXion Dim oProspects() As ConneXion.Prospect Dim oResult As ConneXion.ConneXionResult oProspect.LicenseKey = "1234567 1" oProspect.State = "IL" oProspect.TAMUserName = "EXEC" oProspect.TAMPassword = "PSWD" oProspect.TAMCentralAgency = "DEMOAG1" oResult = oConneXion.FindProspectsByCriteria(oProspect, oProspects) If oResult.Success = True Then txtResult.Text = oResult.Description dgrd.DataSource = oProspects Else txtResult.Text = "Number: " & oResult.Number & vbCrLf & "Desc: " & oResult.Description & vbCrLf & "TAMErrorNumber: " & oResult.TAMErrorNumber & vbCrLf & "TAMErroDesc: " & oResult.TAMDescription End If