FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Selected item on combobox? ( Solved! )
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Selected item on combobox? ( Solved! )
Posted: Tue Jan 13, 2009 12:32 PM

How I can get the selected item at combobox?

oCombo:nAt or something else?

Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Selected item on combobox?
Posted: Tue Jan 13, 2009 12:45 PM

oCombo:aItems[oCombo:nAt]

or more simple

REDEFINE COMBOBOX cCombo ID 100 ITEMS aItems OF oDlg
cCombo holds the value

kind regards

Stefan
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Selected item on combobox?
Posted: Tue Jan 13, 2009 12:54 PM
StefanHaupt wrote:oCombo:aItems[oCombo:nAt]

or more simple

REDEFINE COMBOBOX cCombo ID 100 ITEMS aItems OF oDlg
cCombo holds the value


Stefan,

Thank you!
I do like the second sample. But, with your explanation, now I confirms my doubt to get the index position of a element.
With nAt value!
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9

Continue the discussion