Changeset 14 for trunk/Packages
- Timestamp:
- Mar 22, 2018, 7:59:13 PM (7 years ago)
- Location:
- trunk/Packages
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolWeb/Persistence/USqlDatabase.pas
r12 r14 149 149 TimeParts: TListString; 150 150 begin 151 if Value = '' then Result := 0 else 151 152 try 152 153 Parts := TListString.Create; … … 156 157 Parts.Explode(Value, ' ', StrToStr); 157 158 DateParts.Explode(Parts[0], '-', StrToStr); 159 if (StrToInt(DateParts[0]) = 0) or (StrToInt(DateParts[1]) = 0) or 160 (StrToInt(DateParts[2]) = 0) then Result := 0 else 158 161 Result := EncodeDate(StrToInt(DateParts[0]), StrToInt(DateParts[1]), 159 162 StrToInt(DateParts[2])); -
trunk/Packages/TemplateGenerics/Generic/GenericDictionary.inc
r10 r14 91 91 Result := Result + 1; 92 92 end; 93 if Result >= Count then Result := -1; 93 94 end; 94 95 -
trunk/Packages/TemplateGenerics/Generic/GenericMatrix.inc
r10 r14 50 50 function Implode(RowSeparator, ColSeparator: string; Converter: TToStringConverter): string; 51 51 procedure Explode(Text, Separator: string; Converter: TFromStringConverter; SlicesCount: Integer = -1); 52 function IndexOf(Item: TGMatrixItem; Start: TIndex = 0): TIndex;53 function IndexOfList(List: TGMatrix; Start: TIndex = 0): TIndex;52 function IndexOf(Item: TGMatrixItem; Start: TIndex): TIndex; 53 function IndexOfList(List: TGMatrix; Start: TIndex): TIndex; 54 54 procedure Insert(Index: TIndex; Item: TGMatrixItem); 55 55 procedure InsertList(Index: TIndex; List: TGMatrix);
Note:
See TracChangeset
for help on using the changeset viewer.