/ Forums / Advansys Formativ / Creating Solutions with Formativ / Searching Address Book / Reply To: Searching Address Book
I would recommend you use the GroupWise Object API AddressBookEntries Find(Condition) method. You can use wildcard characters “*” and “?” in the filter expression. The folowing code uses the Find method to find contacts in the “Frequent Contacts” address book.
For more details see the Object API documentation at:
http://developer.novell.com/ndk/doc/gwobjapi/index.html?gwobjenu/data/h7ikbsqg.html
dim oBook
dim oContact
dim oContacts
dim iSyntax
set oBook = groupwise.account.addressbooks.item(“Frequent Contacts”)
iSyntax = “(Name CONTAINS “”” & inputbox(“Find contact”, “”, “”) & “*””)”
set oContacts = oBook.AddressBookEntries.find(iSyntax)
msgbox “Contacts Found: ” & oContacts.count
for each oContact in oContacts
msgbox oContact.displayname
next
[This message was edited by Support 1 on February 09, 2005 at 02:43 PM.]