TWAB
Class for work with Windows Address Book.
constructor Create(const FileName: String)
Opens existing or creates a new WAB. Loads all contacts and groups (Distrobution Lists) when opening the existing WAB file.
FileName - name of the WAB-file. If FileName - is empty line- a default WAB will be opened.

See also:
Destroy, Load
destructor Destroy
End of work and destruction of TWABContacts object

See also:
Create, Load
procedure Load
Loading all contacts and Groups (Distribution Lists) from WAB.

See also:
Create, Destroy
function NewContact: TWABContact
Creates a new contact.

See also:
TWABContact, Contacts, Delete
function NewDistList: TWABDistList
Creates new groups.

See also:
TWABDistList, DistLists, DeleteDistList
procedure Delete(Index: Integer)
Deletes contact with number Index. Contacts a numbered beginning from 0.

See also:
Contacts, NewContact, ContactCount
procedure DeleteDistList(Index: Integer)
Deletes group with number Index. Groups a numbered beginning from 0.

See also:
DistLists, NewDistList, DistListCount
property ContactCount: Integer
Amount of contacts in the WAB.

See also:
Contacts, NewContact, Delete
property DistListCount: Integer
Amount of groups in the WAB.

See also:
DistLists, NewDistList, DeleteDistList
property Contacts[Index: Integer]: TWABContact; default
Contacts in the WAB. Contacts are numbered beginning from 0.

See also:
TWABContact, ContactCount, NewContact, Delete
property DistLists[Index: Integer]: TWABDistList
Groups in the WAB. Groups are numbered beginning from 0.

See also:
TWABDistList, DistListCount, NewDistList, DeleteDistList


TWABProps
Base class for work with WAB Objects. Contains functions for work with object fields.
destructor Destroy
Deleting object. Should not be called on its own. All created objects are deleted automatically.

See also:
Load, Save
procedure Load
Load current object. Last saved state of object is loaded.

See also:
Save
procedure Save
Save current object. All inserted changed will saved in address book after calling Save.

See also:
Load
function FindTag(Tag: Cardinal): Integer;
Looking for field with Tag property. If such a field is not present, -1 will be returned.

See also:
PropTags, PropByTag
property PropCount: Integer
Object's number of fields.

See also:
Props, PropTags, PropByTag
property Props[Index: Integer]: Variant
Content of the field under number Index. Fields are number starting from 0.
After assigning new field contents, it is necessary to save the object into WAB by calling method Save.

See also:
PropCount, PropTags, PropByTag, Save
property PropTags[Index: Integer]: Cardinal
Property of the object field under Index number. Field numeration starts with 0.

See also:
PropCount, Props, PropByTag, FindTag
property PropByTag[Tag: Cardinal]: Variant
Property of the object field with a Tag property. If the Tag signed field is nor present in current contact, Null will be returned during reading the property of the Tag signed field.
While assigning property, a current field property will be changed, if tag signed field is present in the object. If Tag signed field is absent in current object, a new field will be created. After assigning new field properties, to save objects, a Save method must be called.

See also:
PropCount, Props, PropTags, FindTag, Save



TWABContact
Class for work with contacts. Property of TWABProps
destructor Destroy
Deleting contact. Should not be called on its own. All created contacts are deleted automatically.



TWABDistList
Class to work with Groups (Distribution Lists). Property of TWABProps
destructor Destroy
Deleting group. Should not be called on it's own. All created groups are deleted automatically.

See also:
Load, Save
procedure Load
Load current group and list of contacts.

See also:
Save
procedure Save
Save current group. Saving group fields only. To save changed contacts, Save method for contacts should be called.

See also:
Load
function Add(Contact: TWABContact): Integer
Adds a contact to the group. An index of a contact in the group is returned.
Upon adding a contact to the new group, it is necessary to setup group fields' values and call Save method for this group.

See also:
Contacts, ContactCount, Save
procedure Delete(Index: Integer)
Deletes contact with number Index. Contacts a numbered beginning from 0.

See also:
Contacts, ContactCount
property ContactCount: Integer
Amount of contacts in the group.

See also:
Contacts, Add, Delete
property Contacts[Index: Integer]: TWABContact; default
Contacts in the group. Contacts are numbered beginning from 0.

See also:
TWABContact, ContactCount, Add, Delete