Changeset 13 for trunk/UDataTypes.pas
- Timestamp:
- Mar 17, 2015, 12:09:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UDataTypes.pas
r8 r13 15 15 procedure Assign(Source: TValue); override; 16 16 function GetString: string; override; 17 function SetString(Value: string): string; override; 17 18 end; 18 19 … … 23 24 procedure Assign(Source: TValue); override; 24 25 function GetString: string; override; 26 function SetString(Value: string): string; override; 25 27 end; 26 28 … … 31 33 procedure Assign(Source: TValue); override; 32 34 function GetString: string; override; 35 function SetString(Value: string): string; override; 33 36 end; 34 37 … … 39 42 procedure Assign(Source: TValue); override; 40 43 function GetString: string; override; 44 function SetString(Value: string): string; override; 41 45 end; 42 46 … … 47 51 procedure Assign(Source: TValue); override; 48 52 function GetString: string; override; 53 function SetString(Value: string): string; override; 49 54 end; 50 55 … … 129 134 end; 130 135 136 function TValueFloat.SetString(Value: string): string; 137 begin 138 Self.Value := StrToFloat(Value); 139 end; 140 131 141 { TFieldBoolean } 132 142 … … 188 198 end; 189 199 200 function TValueBoolean.SetString(Value: string): string; 201 begin 202 Self.Value := StrToBool(Value); 203 end; 204 190 205 { TValueInteger } 191 206 … … 199 214 begin 200 215 Result := IntToStr(Value); 216 end; 217 218 function TValueInteger.SetString(Value: string): string; 219 begin 220 Self.Value := StrToInt(Value); 201 221 end; 202 222 … … 229 249 end; 230 250 251 function TValueDateTime.SetString(Value: string): string; 252 begin 253 Self.Value := StrToDateTime(Value); 254 end; 255 231 256 { TValueString } 232 257 … … 242 267 end; 243 268 269 function TValueString.SetString(Value: string): string; 270 begin 271 Self.Value := Value; 272 end; 273 244 274 { TFieldString } 245 275
Note:
See TracChangeset
for help on using the changeset viewer.