Migration to XE4 and AnsiString / StrLen issues. Lars Fosdal Delphi Developers: Delphi Bugs & Issues April 29, 2013 1 Minute Migration to XE4 and AnsiString / StrLen issues. Originally shared by François Piette Share this:TweetRedditEmailMoreShare on TumblrWhatsAppTelegramPocketLike this:Like Loading... Related Published by Lars Fosdal Software Developer View all posts by Lars Fosdal Published April 29, 2013
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} Loading... Log in to Reply
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}