Skip to content
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

Compiling with Delphi 10.0 Seattle #6

Open
jrathlev opened this issue Aug 14, 2023 · 1 comment
Open

Compiling with Delphi 10.0 Seattle #6

jrathlev opened this issue Aug 14, 2023 · 1 comment
Assignees

Comments

@jrathlev
Copy link

jrathlev commented Aug 14, 2023

  1. TStringList.AddPair is not available in Delphi 10.0 Seattle.

Proposed workaround:

{$IF CompilerVersion <31.0}  // 10.1 Berlin
type
  TStringListHelper = class helper for TStringList
    function AddPair (const AName,AValue : string) : integer;
    end;

{ ------------------------------------------------------------------- }
function TStringListHelper.AddPair (const AName,AValue : string) : integer;
begin
  Result:=Add(AName+NameValueSeparator+AValue);
  end;
{$ENDIF}
  1. TJsonArray has no default property

Propsed change:

JSO2 := JSA.Items[0] as tjsonobject;

@DeveloppeurPascal
Copy link
Owner

Thanks, I'll install a Seattle on a VM and will update the library soon.

@DeveloppeurPascal DeveloppeurPascal self-assigned this Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants