` Descending or ascending sort order (Dennis E. Evans) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

ABC: Descending or ascending sort order
1998-09-04 -- Dennis E. Evans
 
Newsgroups: comp.lang.clarion >I am trying to get a browse box, in C4 with ABC templates, to be able to >flip order (normal or reverse) with a click of a button. PowerBrowse use to >give you that ability but now it is no longer around. Are there any other >template sets that will allow you to do this. Short of creating the key, >using TPS files, in descending order is the only way I have figured out how >to do this. I would like the user to be able to select the order, ascending >or descending, at rund time while viewing the screen and be able to press a button to switch them. Hi all, do not know about templates but to change the sort order from ascending to descending try this Add the button or a check box In the control event handling embed, control accepted If DescendingFlag SortStr = '+Key:Field' Else SortStr = '-Key:Field' End BrwName.SetOrder(SortStr) Thiswindow.Reset(1) Post(Event:ScrollTop, ?BrowseControlEquate) ! back to the top Add a choice(?TabName) condition if you have more than on tab on the screen. Hope it helps Dennis


Today is April 24, 2024, 11:41 pm
This article has been viewed 35113 times.
Google search has resulted in 71 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: