DbComboBox : aItems Problem
Publicado: Jue Feb 03, 2011 1:54 pm
I am facing following problem with ComboBox and DBComboBox.
I want to give the user Incremental search, hence I keep property lSort = .T.
I have filled the array aItems and aItemsBound with required values.
But the xailer sorts aItems and not aItemsBound. Hence the returned value is always wrong.
Hence I myself gave the indexed value to the Array.
But then too the order changed as xailer sorts the values as alltrim(), hence leading spaces are trimmed ! But our indexing do not trim the same.
So what is the best way out to :
Display Descriptive Value from a Dbf file and return corresponding Code from the same dbf file ?
Kindly guide.
TIA
Milan.
I want to give the user Incremental search, hence I keep property lSort = .T.
I have filled the array aItems and aItemsBound with required values.
But the xailer sorts aItems and not aItemsBound. Hence the returned value is always wrong.
Hence I myself gave the indexed value to the Array.
But then too the order changed as xailer sorts the values as alltrim(), hence leading spaces are trimmed ! But our indexing do not trim the same.
So what is the best way out to :
Display Descriptive Value from a Dbf file and return corresponding Code from the same dbf file ?
Kindly guide.
TIA
Milan.