/ Forums / Advansys Formativ / Creating Solutions with Formativ / Delete AddressBook / Reply To: Delete AddressBook
J. Wolf,
The following applet sample (using the native GroupWise AddressBooks object) should do what you require:
Sub Main(Client, GWEvent) dim AdressBuecher dim AdressBuch set AdressBuecher = GroupWise.Account.AddressBooks set AdressBuch = AdressBuecher.Item("TTT") AdressBuch.Delete() End Sub
You may find that the Address Book application continues to show TTT – however it should be empty. When you restart Address Book/GroupWise, TTT should not be there.
Background
Your original code uses the AddressBooks object which is ‘wrapped’ by Formativ, not the native GroupWise AddressBooks object. The wrapped object is provided in order to make it simpler to access fields. For more information, see the Formativ Language Guide, under GroupWise -> AddressBooks. I will add an entry to the Formativ enhancements database, to implement the wrapped AddressBook.Delete() method.
I hope this helps.
Regards,
Advansys Support