Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Bases";
Current archive: 2002.04.01;
Download: [xml.tar.bz2];

Down

Masters! Find similar branches


DeNN   (2002-03-05 23:02) [0]

Tell me the answer to this question: there is a DBComboBox filled with values, the user selects the desired value and it is entered into the database. When you click on the "Next" button (go to the next record), an event must occur that is tied to the value of the DBComboBox.ItemIndex property
Simply put, with DBComboBox.ItemIndex = 0, one event occurs, with DBComboBox.ItemIndex = 1 another, etc. The fact is that when you click on the "Next" button, the DBComboBox.ItemIndex value is not updated, i.e. you need to forcefully select the value from DBComboBox (which is already in the database), only after that what is needed happens. Inconvenient. How to overcome this? Thank. Sorry for the clumsy explanation :)))



Lusha   (2002-03-06 09:55) [1]

Try to replace in your code a call to ItemIndex with such ...
with DBComboBox1 do Items.IndexOf (DataSource.DataSet.FieldByName (DataField) .AsString);

I hope this helps ...



Pages: 1 whole branch

Forum: "Bases";
Current archive: 2002.04.01;
Download: [xml.tar.bz2];

Top









Memory: 0.55 MB
Time: 0.018 c
We answer immediately.
Duce
2002-03-19 17:39
2002.04.01
Application.Terminate I would like to perform in a timely manner ...


We answer immediately.
Yuri btr
2002-03-22 13:05
2002.04.01
clipboard


We answer immediately.
S
2002-03-21 18:02
2002.04.01
Help to hide the form!


We answer immediately.
Sindyashkin DV
2002-03-21 07:13
2002.04.01
DWG support


We answer immediately.
alexts
2002-03-20 15:21
2002.04.01
Problems with MDI and DLL





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish