format()-error?

Hello Mr. Landgraf,

I don´t know if the issue with the format() is already fixed (I am using Delphi7 and DelphiXE7):
Regarding to http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=4240&title=Format-error


var sDummy:String;
    iVal:integer;
    sVal:String;
begin
 
 iVal:=99;
 sVal:='Hello';

 // result = "1 - 1"                     
 sDummy:=format('%s - %s',['aaa','1']);        
 showmessage(sDummy);                        

 // result = "1 - 1 - 99 - 1 - 1 - 99"
 sDummy:=format('%s - %d - %s - %d',[sVal, iVal, sDummy, iVal ]);
 showmessage(sDummy);

end.   



greetings from Germany

Hi Lunz,

we didn't release the fix yet. Please contact privately to receive the patch.
However since the error only happen in XE2,I wonder why do you need it?

Wagner Landgraf2015-02-02 19:29:59