Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/RTL/Delphi/Format + Float    [ Add a report in this area ]  
Report #:  99680   Status: Open
SysUtils.Format('%s', [X]) where X: Variant not working
Project:  Delphi Build #:  16.0.4276.44006
Version:    16.0 Submitted By:   Const Koothrappali
Report Type:  Crash / Data loss / Total failure Date Reported:  10/6/2011 8:02:28 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 3:46:20 AM
Platform:    All platforms Internal Tracking #:   26385
Resolution: Duplicate (Resolution Comments) Resolved in Build: : None
Duplicate of:  99276
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 10
Description
- expected: string 'ABCD'
- actual: '['
Steps to Reproduce:
var
  X: Variant;
begin
  X := 'ABCD';
  ShowMessage(SysUtils.Format('%s', [X]));


- expected: string 'ABCD'
- actual: '['
Workarounds
None
Attachment
test.zip
Comments

Tomohiro Takahashi at 10/6/2011 7:29:13 PM -
>   ShowMessage(SysUtils.Format('%s', [X]));
What result do you get?
- expected: ?
- actual: ?

Const Koothrappali at 10/7/2011 1:30:09 AM -
- expected: string 'ABCD'
- actual: '['

Tomohiro Takahashi at 10/7/2011 7:09:29 AM -
Is your issue same as QC#99276 ?

Const Koothrappali at 10/7/2011 7:51:45 AM -
Yes

Server Response from: ETNACODE01