******************************************************************** * Description.......: Command1.Click - Clear all Selections * Calling Samples...: * Parameter List....: * Created by........: * Modified by.......: Nadya Nosonovsky 03/14/2000 06:13:57 PM ******************************************************************** * 8/4/99: support an easy way to clear all selected items. * Adapted from preliminary logic for handling the Counties listbox. * 8/7/99: added tie-in to new btc_cascade method, for propagating changes as necessary. with this.parent.parent this.enabled=.f. && should cause this button to become disabled .container1.list1.SetFocus() && Fake click .BTC_ListClear() && clear all selections in the listbox if .hasdependants .BTC_Cascade() && force re-init of any dependent controls endif endwithThis is the code in btc_ListClear:
******************************************************************** * Description.......: BTCC_MultiList.BTC_ListClear: method to clear all selections in this criterion's listbox * Calling Samples...: * Parameter List....: * Created by........: MDA * Modified by.......: Nadya Nosonovsky 12/29/1999 04:21:56 PM ******************************************************************** * 8/4/99: Adapted from preliminary logic for handling the Counties listbox. local n, lnSel * not sure if the following is necessary, but may avoid flakiness and can't hurt with this.container1.list1 local n for n=.ListCount to 1 step -1 .selected(n)=.f. endfor .refresh() endwith with this if !empty(.CursorName) && Clear cursor content lnSel=select() && save current area select (.CursorName) zap select (lnSel) && restore previous selection endif endwithThis is the code in List1.Refresh()