File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,9 @@ interface
48
48
function Next : boolean; safecall;
49
49
function Get_Key : WideString; safecall;
50
50
function Get_Value : OleVariant; safecall;
51
+ procedure Set_Value (Value : OleVariant); safecall;
51
52
property Key: WideString read Get_Key;
52
- property Value : OleVariant read Get_Value;
53
+ property Value : OleVariant read Get_Value write Set_Value ;
53
54
end ;
54
55
55
56
IJSONEnumerable = interface (IUnknown)
@@ -94,6 +95,7 @@ TJSONEnumerator = class(TInterfacedObject, IJSONEnumerator)
94
95
function Next : boolean; safecall;
95
96
function Get_Key : WideString; safecall;
96
97
function Get_Value : OleVariant; safecall;
98
+ procedure Set_Value (Value : OleVariant); safecall;
97
99
end ;
98
100
99
101
EJSONException=class (Exception);
@@ -1076,4 +1078,12 @@ function TJSONEnumerator.Get_Value: OleVariant;
1076
1078
Result:=FData.FElements[FIndex].Value ;
1077
1079
end ;
1078
1080
1081
+ procedure TJSONEnumerator.Set_Value (Value : OleVariant);
1082
+ begin
1083
+ if (FIndex<0 ) or (FIndex>=FData.FElementIndex) then
1084
+ raise ERangeError.Create(' Out of range' )
1085
+ else
1086
+ FData.FElements[FIndex].Value :=Value ;
1087
+ end ;
1088
+
1079
1089
end .
You can’t perform that action at this time.
0 commit comments