database - Delphi 5 DB Aware ComboBox ItemIndex Not Updating -


so have dbaware combobox , problem this.

if do:

combobox.itemindex := 0; 

then though visually shows item in combobox being selected, following still returns true.

query.fieldbyname('field').isnull 

basically i'm trying make if field associated combobox null record, want combobox default first index. however, when itemindex isn't making edit record.

any ideas? please help.

instead of setting default value itemindex set in dataset like

query.edit; query.fieldbyname('field').value := 'default value'; query.post; 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -