denisvj Posted September 9, 2002 Posted September 9, 2002 I am new... and I want to make a "ascendig descendig order" script in a list, ex : order ascending or descendig a list of items but I dont know how can i doit , can you people gime some tips or an advice how can i do it, thaks . Dennis
LiveOak Posted September 9, 2002 Posted September 9, 2002 I'm going to have to make some guesses about what you mean. I'm going to assume your "list" is a set of records in List View. Further, I'm going to assume "ascending descending order" script means a script that will change the sort order from ascending to descending or descending to ascending each time it is run. Create a field: gSortOrder (global, number) Create scripts: (first script - Sort Button) Allow User Abort (off) Set Error Caputure (on) If(gSortOrder) Perform Script(SORT: Descending) SetField(gSortOrder, "") else Perform Script(SORT: Ascending) SetField(gSortOrder, "1") End If (second script- SORT: Ascending) Sort(Restore, no dialog) <-- set the ascending sort order in this script (third script- SORT: Descending) Sort(Restore, no dialog) <-- set the descending sort order in this script If this isn't what you wanted, try your question again with a little more explaination. -bd
Recommended Posts
This topic is 8210 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now