-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How fix warning compiler about string #24
Comments
Hi, |
I use Delphi 10.3 only this code give 33 warning together
Could you please give an example? If I use the code as in the example, where will I have to adjust it? |
Try change procedure TForm1.btn1Click(Sender: TObject);
var
jSon: TMcJsonItem;
lContent: AnsiString;
begin
jSon := TMcJsonItem.Create();
lContent := '{"key1":1,"key2":true,"key3":1.234,"key4":"value 1","array":[1,2,3]}';
jSon.AsJSON := lContent;
try
MMO1.Text := jSon.ToString(True);
finally
jSon.Free;
end;
end; |
It still gives 33 warnings message follow : [dcc32 Warning] McJSON.pas(179): W1010 Method 'ToString' hides virtual method of base type 'TObject' |
I'll study how to solve this I think I must use It is related to: Also, I'll prepare a Delphi 11 CE installation to check these warnings locally. Thanks. |
Hello,
I gave the variable a JSON string value before adding the value to the JSON object with the AsJSON method, which caused a warning.
TestMcJSON_.zip [This if sample project]
But I get 33 warning messages after compilation.
about :
Plese advice me to fix these
Thank you
The text was updated successfully, but these errors were encountered: