>>Are there other places where the name list is cleared and rebuilt? >My impression was that by fixing the UpdateNames() function, all these >functions are >fixed.
Yes.Following these steps Data-Define Range, you can find that the dialog are the same and the same mistakes. According to your advice, I try to fix the function UpdateNames() and add some code. at the begining: //aEdName.Clear(); String aNewEntry = aEdName.GetText(); //get the name the mouse selected NameSelectHdl(0); USHORT nNamePos = aEdName.GetEntryPos( aNewEntry); //get the postion USHORT nStoreNamePos = aEdName.InsertEntry(aNewEntry, nNamePos); //store and at the end: aEdName.GetSelectEntryPos(nStoreNamePos); //restore but this doesn't work. Maybe I am wrong, any advice?
