Delphi Pages Forums  

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

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2000, 06:11 AM
N/A
Guest
 
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
  #2  
Old 04-05-2000, 07:01 PM
N/A
Guest
 
Posts: n/a
Default RE: Problems with DBLookupComboBox

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

*Shift: TShiftState);

begin

*if Key = VK_DELETE then

*begin

* *with Sender as TDBLookupComboBox do

* *begin

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

* * * *DataSource.DataSet.Edit;

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

* *end;

*end;

end;
Reply With Quote
Reply

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 08:35 AM.


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