In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

DbComboBox : aItems Problem

Xailer English public forum
Milan Mehta
Mensajes: 134
Registrado: Dom Dic 27, 2009 9:54 am

DbComboBox : aItems Problem

Mensaje por Milan Mehta »

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.
Responder