Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/VCL/Win 32 Controls/TComboBoxEx    [ Add a report in this area ]  
Report #:  492   Status: Closed
TComboBoxEx Insert problem
Project:  Delphi Build #:  6.240
Version:    6.0 Submitted By:   byungho jeon
Report Type:  Basic functionality failure Date Reported:  4/5/2002 12:40:48 PM
Severity:    Commonly encountered problem Last Updated: 5/2/2003 12:58:35 PM
Platform:    All versions Internal Tracking #:  
Resolution: Fixed (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (14 Total Ratings)
4.36 out of 5
Total Votes: None
Description
TComboBoxEx does not insert item, it overwrite previous item.

example)
procedure TForm1.Button1Click(Sender: TObject);
var
   LIdx: Integer;
begin
   for LIdx:=0 to 5 do
     Combo.ItemsEx.Insert(0).Caption := IntToStr( LIdx );
end;

Combo.Count is always 1...


Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments

Mike Orriss at 4/6/2002 10:00:01 PM -
I can confirm this.

It doesn't work even if I split it up into two statements.

Also, multiple calls and we still only have a single item.

Robert Lee at 2/21/2003 4:51:41 PM -
Confirmed in D6.240

Server Response from: ETNACODE01