|
@@ -283,6 +283,9 @@ type
|
|
class operator := (AValue: Boolean): TValue; inline;
|
|
class operator := (AValue: Boolean): TValue; inline;
|
|
class operator := (AValue: IUnknown): TValue; inline;
|
|
class operator := (AValue: IUnknown): TValue; inline;
|
|
class operator := (AValue: TVarRec): TValue; inline;
|
|
class operator := (AValue: TVarRec): TValue; inline;
|
|
|
|
+ class operator := (AValue: TDateTime): TValue; inline;
|
|
|
|
+ class operator := (AValue: TDate): TValue; inline;
|
|
|
|
+ class operator := (AValue: TTime): TValue; inline;
|
|
property DataSize: SizeInt read GetDataSize;
|
|
property DataSize: SizeInt read GetDataSize;
|
|
property Kind: TTypeKind read GetTypeKind;
|
|
property Kind: TTypeKind read GetTypeKind;
|
|
property TypeData: PTypeData read GetTypeDataProp;
|
|
property TypeData: PTypeData read GetTypeDataProp;
|
|
@@ -2779,6 +2782,21 @@ begin
|
|
Result:=TValue.FromVarRec(aValue);
|
|
Result:=TValue.FromVarRec(aValue);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+class operator TValue.:=(AValue: TDateTime): TValue;
|
|
|
|
+begin
|
|
|
|
+ Make(@AValue, System.TypeInfo(TDateTime), Result);
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
+class operator TValue.:=(AValue: TDate): TValue;
|
|
|
|
+begin
|
|
|
|
+ Make(@AValue, System.TypeInfo(TDate), Result);
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
+class operator TValue.:=(AValue: TTime): TValue;
|
|
|
|
+begin
|
|
|
|
+ Make(@AValue, System.TypeInfo(TTime), Result);
|
|
|
|
+end;
|
|
|
|
+
|
|
function TValue.AsString: string;
|
|
function TValue.AsString: string;
|
|
begin
|
|
begin
|
|
if System.GetTypeKind(String) = tkUString then
|
|
if System.GetTypeKind(String) = tkUString then
|