Changeset 37
- Timestamp:
- Nov 25, 2021, 3:20:15 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UContact.pas
r35 r37 37 37 38 38 TContactFields = class(TFPGObjectList<TContactField>) 39 function AddNew(Name: string; Groups: TStringArray; Title: string; Index: TContactFieldIndex; DataType:39 function AddNew(Name: string; Groups: array of string; Title: string; Index: TContactFieldIndex; DataType: 40 40 TDataType; ValueIndex: Integer = -1): TContactField; 41 41 function GetByIndex(Index: TContactFieldIndex): TContactField; … … 348 348 { TContactFields } 349 349 350 function TContactFields.AddNew(Name: string; Groups: TStringArray; Title: string; Index: TContactFieldIndex;350 function TContactFields.AddNew(Name: string; Groups: array of string; Title: string; Index: TContactFieldIndex; 351 351 DataType: TDataType; ValueIndex: Integer = -1): TContactField; 352 var 353 I: Integer; 352 354 begin 353 355 Result := TContactField.Create; 354 356 Result.SysName := Name; 355 Result.Groups := Groups; 357 SetLength(Result.Groups, Length(Groups)); 358 for I := 0 to Length(Groups) - 1 do 359 Result.Groups[I] := Groups[I]; 356 360 Result.Title := Title; 357 361 Result.Index := Index;
Note:
See TracChangeset
for help on using the changeset viewer.