Günther,
Please resend me your email, as I have not received it.
Your example fails because the first value you place in the field does not match any of the values in the combobox.
Please try your example with some little modifications from me and you will see that it works fine
#include "FiveWin.ch"
function Main()
local oDlg , oCombo1
dbcreate("testdb.dbf",{{"feld1","C",10,0}})
USE
USE ("testdb.dbf") ALIAS "testdb" NEW EXCLUSIVE
testdb->(dbappend())
testdb->feld1 := replicate( "A", len( testdb->feld1 ) ) // "ABCDEFGHIJ"
testdb->(dbappend())
testdb->feld1 := replicate( "B", len( testdb->feld1 ) )
testdb->(dbgotop())
DEFINE DIALOG oDlg TITLE "Combobox CBS_DROPDOWN Test" FROM 0,0 TO 300,300 PIXEL
@ 2, 2 COMBOBOX oCombo1 VAR testdb->feld1 ;
PROMPTS {replicate("A",len(testdb->feld1)),replicate("B",len(testdb->feld1))} ;
OF oDlg SIZE 80, 40 STYLE CBS_DROPDOWN UPDATE
@ 4, 1 BUTTON "<" OF oDlg ;
ACTION if(testdb->(recno())>1,(testdb->(dbskip(-1)),oDlg:update()),msginfo("Begin of DB"))
@ 4, 10 BUTTON ">" OF oDlg ;
ACTION if(testdb->(recno())<2,(testdb->(dbskip(1)),oDlg:update()),msginfo("End of DB"))
@ 6,1 SAY "1. Go with > to the second record." + CRLF + ;
"2. Go with < return to the first record" + CRLF + ;
"3. Open the Combobox with the arrow" + CRLF + CRLF + ;
"Now you see, that the first record also is 'BBBBBBBBBB'" SIZE 200, 50
ACTIVATE DIALOG oDlg CENTERED
USE
return nil