Migration to XE4 and AnsiString / StrLen issues.

Migration to XE4 and AnsiString / StrLen issues.

Originally shared by François Piette

One thought on “Migration to XE4 and AnsiString / StrLen issues.”

  1. Well, not long ago I also wrote similar wrapper, but for FormatSettings members, adapting code to compile on D2006 and XE2

    {$REGION ‘Utility functions to mask different Delphi versions’}

    function GetRtlListSeparator: Char; inline;

    begin

    {$IF RTLVersion >= 23}

      Result := FormatSettings.ListSeparator;

    {$ELSE}

      Result := ListSeparator;

    {$IFEND}

    end;

    {$ENDREGION}

Leave a Reply