Sort cards doesn't work in 7.0 -- troubleshooting bears fruit
On Oct 25, 2014, at 11:31 AM, Mark Wieder mwie...@ahsoftware.net wrote: I'm with Richard on this - I've never tried to sort cards numeric, and I'm not even sure what I would expect if I tried it. What does or doesn't work now, and what was the result previously? Does/did that sort numerically on the names of the cards or the numbers of the cards? Or something else? On Oct 25, 2014, at 11:17 AM, Richard Gaskin ambassa...@fourthworld.com wrote: Hard to say. I tend to externalize my data, paging it in and out of controls in a single card, so I'd never come across this in my own testing. HyperCard retread that I am, I don’t even know what it means to page data in and out of controls. This stack was born in HyperCard and still very much resembles a stack of index cards. You can tell, because I still type “bg field” This approach works perfectly and does everything I need it to do. Card 1 of this stack is an index card. A pair of buttons appear on the card 1, along with other stuff. “Sort cards by name” and “Sort cards by intake date.” Their function is obvious. I just realized than neither sort command works. sort cards numeric by field “intakeSecs -and- sort cards text by bg field patient name” Fields “intakeSecs and “patient name” appear on every card in the stack, except card 1, where these buttons are located. IIRC, in ancient versions of hyperCard, this kind of sort didn’t work right if the script encountered a card where the field containing the sort key was absent. Apparently this anti-feature has returned to 7.0. If I copy the buttons and paste then onto card 2, where both fields appear, the scripts work normally. So, I guess I’ve got my workaround, and if this is indeed a bug, as I suspect it is, I would appreciate it if someone would report it on my behalf. Thanks for your help. Tim Miller ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sort cards doesn't work in 7.0 -- troubleshooting bears fruit
Timothy Miller wrote: IIRC, in ancient versions of hyperCard, this kind of sort didn’t work right if the script encountered a card where the field containing the sort key was absent. Apparently this anti-feature has returned to 7.0. If I copy the buttons and paste then onto card 2, where both fields appear, the scripts work normally. So, I guess I’ve got my workaround, and if this is indeed a bug, as I suspect it is, I would appreciate it if someone would report it on my behalf. I think there may be something else going on than just an empty field. See my notes from a few minutes ago: http://lists.runrev.com/pipermail/use-livecode/2014-October/207457.html Further testing shows the same surprisingly smart behavior even if one of the fields is empty (it simply sorts that to become the first card, as we'd expect), so I have to wonder if there's something else going on with the data. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sort cards doesn't work in 7.0 -- troubleshooting bears fruit
On Oct 25, 2014, at 12:13 PM, Timothy Miller gand...@doctortimothymiller.com wrote: Card 1 of this stack is an index card. A pair of buttons appear on the card 1, along with other stuff. “Sort cards by name” and “Sort cards by intake date.” Their function is obvious. I just realized than neither sort command works. sort cards numeric by field “intakeSecs -and- sort cards text by bg field patient name” Fields “intakeSecs and “patient name” appear on every card in the stack, except card 1, where these buttons are located. I tried pasting fields “intakeSecs and “patient name” onto card 1. The following odd result occurred, --sort cards numeric by field “intakeSecs” Now works from card 1. —sort cards text by bg field patient name” Still doesn’t work from card 1. I checked pretty carefully. The name of field patient name is spelled correctly, and the properties of the two fields are identical. Wheels within wheels. Tim Miller ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sort cards doesn't work in 7.0 -- troubleshooting bears fruit
On Oct 25, 2014, at 12:31 PM, Richard Gaskin ambassa...@fourthworld.com wrote: I think there may be something else going on than just an empty field. Absent field, not empty field. But it wouldn’t surprise me if something else going on. See my next message on this thread. Tim Miller ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sort cards doesn't work in 7.0 -- troubleshooting bears fruit
On Oct 25, 2014, at 12:33 PM, Timothy Miller gand...@doctortimothymiller.com wrote: I tried pasting fields “intakeSecs and “patient name” onto card 1. The following odd result occurred, --sort cards numeric by field “intakeSecs” Now works from card 1. —sort cards text by bg field patient name” Still doesn’t work from card 1. How about trying it without the bg in the latter one? BTW, thanks for bringing this up. I had no idea you could use a field on each card as a sort key! .Jerry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sort cards doesn't work in 7.0 -- troubleshooting bears fruit
On Oct 25, 2014, at 12:50 PM, Jerry Jensen j...@jhj.com wrote: How about trying it without the bg in the latter one? Absent-minded me! You were right. Both scripts now work normally on card 1. Tim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode