Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Thread Tools Display Modes
Old 01-04-2000, 06:11 AM
Posts: n/a
Default Problems with DBLookupComboBox

I am working with Delphi3.

In my DBLookupComboBox I display 3 fields in dropdownlist and key field on the screen. It works fine. The problem is:

When i want to live this form I need to clean the contens of the box on the screen.If I assign empty string to text property, it says that can not assign a value to readOnly property. Any Idea What to do?

I seted up ListSourse, ListField, KeyField. I did not seted up Datasource and DataField because if I do this it do not display what i want.

Thank you.
Reply With Quote
Old 04-05-2000, 07:01 PM
Posts: n/a
Default RE: Problems with DBLookupComboBox

procedure TForm1.DBLookupComboBox1KeyDown(Sender: TObject; var Key: Word;

*Shift: TShiftState);


*if Key = VK_DELETE then


* *with Sender as TDBLookupComboBox do

* *begin

* * *if not(DataSource.DataSet.State in dsEditModes) then

* * * *DataSource.DataSet.Edit;

* * *DataSource.DataSet.FieldByName(DataField).Clear;

* *end;


Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:22 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.