Changeset 106 for trunk/Forms


Ignore:
Timestamp:
Feb 10, 2022, 11:53:26 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Generate more contacts properties.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormGenerate.lfm

    r103 r106  
    3232  end
    3333  object ButtonGenerate: TButton
    34     Left = 20
     34    Left = 704
    3535    Height = 39
    36     Top = 180
     36    Top = 528
    3737    Width = 118
     38    Anchors = [akRight, akBottom]
    3839    Caption = 'Generate'
    3940    OnClick = ButtonGenerateClick
  • trunk/Forms/UFormGenerate.pas

    r103 r106  
    4646  for I := 1 to SpinEditCount.Value do begin
    4747    Contact := Contacts.AddNew;
    48     Contact.Fields[cfVersion] := Core.DefaultVcardVersion;
    49     Contact.Fields[cfFirstName] := 'First ' + IntToStr(Random(10000));
    50     Contact.Fields[cfLastName] := 'Last ' + IntToStr(Random(10000));
    51     Contact.Fields[cfFullName] := 'FullName ' + IntToStr(Random(100));
    52     Contact.Fields[cfTelCell] := IntToStr(Random(1000000000));
    53     Contact.Fields[cfTelHome] := IntToStr(Random(1000000000));
     48    with Contact do begin
     49      Fields[cfVersion] := Core.DefaultVcardVersion;
     50      Fields[cfFirstName] := 'First ' + IntToStr(Random(10000));
     51      Fields[cfLastName] := 'Last ' + IntToStr(Random(10000));
     52      Fields[cfFullName] := 'FullName ' + IntToStr(Random(100));
     53      Fields[cfTelCell] := IntToStr(Random(1000000000));
     54      Fields[cfTelHome] := IntToStr(Random(1000000000));
     55      Fields[cfTelWork] := IntToStr(Random(1000000000));
     56      Fields[cfNote] := 'Some contact notes';
     57      Fields[cfEmail] := 'user@email.com';
     58      Fields[cfEmailHome] := 'home@email.com';
     59      Fields[cfEmailWork] := 'home@email.com';
     60      Fields[cfUrl] := 'https://url.com';
     61      Fields[cfUrlWork] := 'https://work.com';
     62      Fields[cfUrlHome] := 'https://home.com';
     63    end;
    5464  end;
    5565  Close;
Note: See TracChangeset for help on using the changeset viewer.