Changeset 17 for trunk/UContact.pas


Ignore:
Timestamp:
Feb 28, 2018, 12:56:11 PM (7 years ago)
Author:
chronos
Message:
  • Added: New Generate contacts Tools menu action to generate multiple random contacts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UContact.pas

    r16 r17  
    8888  TContacts = class(TObjectList)
    8989    ContactsFile: TContactsFile;
     90    function AddNew: TContact;
    9091    function Search(FullName: string): TContact;
    9192    function ToString: ansistring; override;
     
    121122
    122123{ TContacts }
     124
     125function TContacts.AddNew: TContact;
     126begin
     127  Result := TContact.Create;
     128  Result.Parent := ContactsFile;
     129  Add(Result);
     130end;
    123131
    124132function TContacts.Search(FullName: string): TContact;
Note: See TracChangeset for help on using the changeset viewer.