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:


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

[This message was edited by Support 1 on February 09, 2005 at 02:43 PM.]