Sort Cards
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Sort Cards
Is it possible to sort the cards of a stack without automatically navigating to the first card? For example, sort cards of this stack by fld "Field" will navigate to card 1.
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Sort Cards
nc mac, try...
Dixie
Code: Select all
on mouseUp
lock screen
push card
-- do your sort
pop card
end mouseUp
Re: Sort Cards
Perfect! Thanks. Is unlock screen necessary at the end of the handler?
-
- VIP Livecode Opensource Backer
- Posts: 9848
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Sort Cards
It's only necessary to explicitly unlock the screen if you want an update to occur before idle. At idle the screen will redraw on its own.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn