Click or drag to resize

IFindPersonsByPhone Method

find collection of Persons using phone numbers Search and retrieve persons by their phone number

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOPersons PersonsByPhone(
	string Phone
)

Parameters

Phone
Type: SystemString
phone number to search for (may be a partial number)

Return Value

Type: SOPersons
SOPersons a collection of persons matching Phone
Examples

PersonsByPhone

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

This will find all persons with a phone number that starts with 2251

VB
Dim objSO
Dim objPerson
Set objSO = CreateObject("SuperOfficeDB.Database")
If not (objSO is nothing) Then
    objSO.login "<USERID>", "<password>"
    set objPerson = objSO.Find.PersonsByPhone("2251")
    set Person = objPerson.getfirst
    while not objPerson.eof
        item = Person.firstname & " " & Person.lastname
        msgbox item
        set person = objPerson.Getnext
    wend
Else
    MsgBox "Could not log in"
End If
Set objSO = Nothing

See Also