TDBComboBox doesn't shows the right value
Publicado: Mié May 16, 2007 3:38 pm
Hi,
the TDBCombobox control is linked into oDataSet1 into fiel CUSTNUM, (customer number is
type of CHR) and the displayed elements are filled with the next code from oDataSet3:
METHOD DBComboBox1Create( oSender ) CLASS TForm2
oSender:aItems := ::oDbfDataSet3:SaveToArray( "CustName" )
RETURN Nil
oDBComboBox1:nDataType is set to dtBOUND.
When oDBComboBox:lSort is .F., the control shows the correct customer name, but during the
Edit() method, the list of customer names are not sorted alfabetically. Setting
oDBComboBox:lSort to .T., the list of customer's name is sorted, but the displayed name is
wrong when the record changes in oDataSet1.
Please help, and sorry for so much questions, I'm testing how to do things in a new
environment.
Gejza Horvath
the TDBCombobox control is linked into oDataSet1 into fiel CUSTNUM, (customer number is
type of CHR) and the displayed elements are filled with the next code from oDataSet3:
METHOD DBComboBox1Create( oSender ) CLASS TForm2
oSender:aItems := ::oDbfDataSet3:SaveToArray( "CustName" )
RETURN Nil
oDBComboBox1:nDataType is set to dtBOUND.
When oDBComboBox:lSort is .F., the control shows the correct customer name, but during the
Edit() method, the list of customer names are not sorted alfabetically. Setting
oDBComboBox:lSort to .T., the list of customer's name is sorted, but the displayed name is
wrong when the record changes in oDataSet1.
Please help, and sorry for so much questions, I'm testing how to do things in a new
environment.
Gejza Horvath