Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Debugger/Evaluator/Delphi    [ Add a report in this area ]  
Report #:  67701   Status: Open
Evaluate/modify doesn't support strings defined via # character syntax
Project:  Delphi Build #:  12.0.3170.16989
Version:    12.0 Submitted By:   Eric Grange
Report Type:  Basic functionality failure Date Reported:  10/9/2008 2:44:08 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   267248
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (3 Total Ratings)
4.67 out of 5
Total Votes: 16
Description
The evaluate/modify dialog (Ctrl+F7) doesn't support strings defined with the # syntax, even though this works with characters.

For instance if you try to evaluate #$20 you will correctly get ' ' (a single space character), but if you try to evaluate #$20#$20 and you'll get the cryptic:

E2003 Identificateur non déclaré : 'String'
Steps to Reproduce:
Got in the evaluate dialog with Ctrl+F7 or menu, type-in or copy-paste #$20#$20, you'll get as result:

E2003 Identificateur non déclaré : 'String'
Workarounds
None
Attachment
None
Comments

Ilkka Hyvarinen at 11/3/2008 5:07:24 AM -
Confirmed. In English the error message is: "E2003 Undeclared identifier: 'String'".

Chris Hesik (Embarcadero) at 2/19/2009 2:18:37 PM -
This happens with any string constant evaluated while not debugging.  The same thing happens when you evaluate: 'foo'.

If you are debugging, evaluating string constants works fine

Server Response from: ETNACODE01