PDA

View Full Version : clear a dblookupcombo after selecting


N/A
06-13-2000, 12:26 AM
whenever I select a item in a dblookupcombobox i cant select nothing (its readonly)
can anyone help me??

N/A
06-13-2000, 09:17 AM
To clear a DBLookupComboBox, you should call the "Clear" method of the data field, associated with the control. As there is no way to do this from the control itself, you may add a button / speed button next to the control:

procedure TForm1.SpeedButton1Click (...)
begin
Table1Field1.Clear;
end;

Here I assume that you have a Table component with a field named Field1 and that DataField property of your DBLookupComboBox component is attached to it.

Have fun,
Nikolay