-> DBCombo: Display Text and get ItemIdex for DB? <-

From: Steve JORDI (stevejordiK_I_L_LSPAM_at_hotmail.com)
Date: 10/29/04


Date: Fri, 29 Oct 2004 15:42:39 +0200

Hi,
is there any way to get a DBComboBox control actually return the
ItemIndex to the Database and Field it's linked to instead of the
displayed value?

I'd like to have a combobox that shows:
        Hours
        Days
        Weeks
        Months
        Years

but returns 0 for Hours, 1 for Days, 2 for Weeks,
3 for Months and 4 for years. -1 being "nothing".

Any direct way to do this?
The data binding being done with a numeric field, not
a text one.

Thanks for any help.

Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------


Quantcast