Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Code Completion    [ Add a report in this area ]  
Report #:  94185   Status: Open
Code completion popup window bug
Project:  Delphi Build #:  15.0.3953.35171
Version:    15.1 Submitted By:   ILGAM ZYULKORNEYEV
Report Type:  Basic functionality failure Date Reported:  5/25/2011 12:18:50 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   283364
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 19
Description
Words filtering in the code completion popup window somehow skips constants where "Z" letter present, very annoying.
Steps to Reproduce:
1. Create new VCL forms application.

2. Double click on form's OnCreate event.

3. Replace your form's unit code by following:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

const
  TEST_A = 1;
  TEST_B = 2;
  TEST_Z = 3;

type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  Caption := IntToStr(TEST_ );
end;

end.


4. Set typing cursor to the end of "TEST_" word in line "Caption := IntToStr(TEST_ );" and press "CTRL+Space" to popup code completion window. There will be only two constants "TEST_A" and "TEST_B", but we have three such constants starting with "TEST_". Constant "TEST_Z" was filtered out for unknown reason.
Workarounds
None
Attachment
None
Comments

ILGAM ZYULKORNEYEV at 9/7/2011 12:39:07 AM -
Still not fixed in Delphi XE2, its seems we have to wait another couple years to get it fixed.

Lorenzo Montesi at 9/4/2014 11:34:56 PM -
The problem is the sequence "_Z"

Server Response from: ETNACODE01