Joe,
I'm going to add: oLbx:clear()
after the create and see if that fixes the problem. I won't be able
to
test it until next week because I won't be at a Win98 system until
Monday.
Yes, this might help. I only use my own, derived, ListBox class, so
I really
don't know for sure if there is a problem in the base class. But I
also use
the :Clear() method before adding (or changing) values. Here is a
small code
snippet:
************************************
* DDP_DlgListBox: SetValues Method *
************************************
Method DDP_DlgListBox:SetValues(aListArray)
LOCAL aMarked := ::GetData() // Keep selection
::Clear()
::cSearchText := ::cFindText := '' // Reset incremental and
::nLastFound := 0 // full-text search
strings
if aListArray # NIL
::aListArray := AClone(aListArray) // Update
code-replacement array
endif
AEval(::aListArray, {|a| ::AddItem(a[2])})
::SetData(aMarked, .t.)
return (Self)
-- Andreas
---
---
Andreas Gehrs-Pahl E-Mail:
GPahl@CharterMI.net
415 Gute Street or:
Andreas@DDPSoftware.com
Owosso, MI 48867-4410 or:
Andreas@Aerospace-History.net
Tel: (989) 723-9927 Web Site:
http://www.Aerospace-History.net
---
---