Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove list item from lstleft box using mover class? 1

Status
Not open for further replies.

iyarosh

Programmer
Apr 14, 2003
49
US
Hello,

I'm using _mover class to build a list of available choices based on selected criterias. When I pick the criteria for the first time it works fine, but when I try to go for another choice I have a problem - new selections are getting appended to the list generated before (lstLeft) and I do not know how to clear it to be able to reuse it. Would anyone know how to resolve it?

Thanks!
 
Got it! Sorry for the false alarm. In case some one else needs it here is a sample of the routine that cleans all objects; no need to change the class.

for i=1 to thisform.moverName.lstLeft.listcount
thisform.moverName.lstLeft.RemoveListItem(i)
endfor

Thanks!
 
Won't the following work? Haven't tried it, just curious.

thisform.moverName.lstLeft.clear()

Slighthaze = NULL
craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top