08-01-2008, 12:56 PM
|
GaryS
Joined on 08-02-2008
Posts 1
|
Clearing the locator with a button - Updated with solution
|
|
|
|
|
I posted this on the newsgroups and none of the experts who looked at the question could provide an answer. I'm hoping perhaps there is an expert here on the forum that has the answer.
C6.3. I have a filter locator. I want to put a button under the listbox that
when clicked will clear or reset the locator so all records show. What code
do I put in the accepted embed of the button to clear the locator?
I'm making progress. I put the
following code in the accepted embed of the button
!Clear
Locator BRW1::Sort0:Locator.Shadow =
'' ThisWindow.Reset(1)
BRW1::Sort0:Locator.Shadow = '' does clear the
locator but it also stops the embed code from continuing to execute and I have to press the
button a second time to get the ThisWindow.Reset(1) to execute.
How
can I get the ThisWindow.Reset(1) to execute after
BRW1::Sort0:Locator.Shadow = '' ?
Solution Update
For those of you who want to know how to do it here is the solution with much thanks to Dennis Evans.
!Clear Locator CLEAR(BRW1::Sort0:Locator.Shadow) BRW1::Sort0:Locator.set() ThisWindow.Reset(1) SELECT(?Browse:1)
I return control to the browse after clicking the button but that's not necessary.
|
|
|
|
|
Report
|
|
|
|