Recent

Author Topic: RXDBcombobox issue  (Read 581 times)

MoellerCLaus

  • Jr. Member
  • **
  • Posts: 88
    • Vig Foreningsprogram
RXDBcombobox issue
« on: May 16, 2021, 12:35:23 pm »

In my application I use SQLLite3 with Zeos access. It works fine and I enjoy working with it.
I want to display some options for the user; 25m and 50m. But in the table it should be stored as 0,1.
The field I defined as VARCHAR(2).
On the form I inserted a RXDBCombobox set the values to 0 and 1. The items to 25 and 50.
It works but when the dropbox comes down and I choose a value it fires thousand of
procedure TCustomDBComboBox.UpdateData(Sender: TObject);
And the program fills the stack and stops.

Any hint where to look is highly appreciated?


MoellerCLaus

  • Jr. Member
  • **
  • Posts: 88
    • Vig Foreningsprogram
Re: RXDBcombobox issue
« Reply #1 on: May 16, 2021, 08:50:14 pm »
 :) I dropped this TRXDBCombobox component. I used the TComboBox editingdone instead. And further on updating the dataset I switched the itemindex of the combo.
Does the same - no tricks - plain readable code.

 

TinyPortal © 2005-2018