Re: Sort cards doesn't work in 7.0
On Oct 27, 2014, at 10:24 PM, Kay C Lan lan.kc.macm...@gmail.com wrote: http://quality.runrev.com/ and report your findings and the simple steps required to see the 'failure'. Attach (upload) both stacks so they can see exactly what you are seeing. If your stack contains confidential information that you'd rather not share with the Runrev team, then you'll have to build a new stack with a couple of cards that reproduces the problem. This of course is a good thing because if you can, the problem is what you suspect, but if your new stack doesn't exhibit the same fault, then it isn't what you suspect and there must be other factors that are causing the problem. You’re right of course. It’s kind of a chore. Sigh… I guess I’ll get started. I was hoping someone else would confirm the same bug in a less cumbersome, non-confidential stack, but that hasn’t happened yet. It will happen eventually. By then, it might be a known bug or a fixed bug. Paying it forward…. 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
On Oct 25, 2014, at 12:06 PM, Richard Gaskin wrote: And weirder still, this behavior seems consistent in both 6.7 and 7.0. Tim, any chance you may have NULLs or other oddities in the data? When you test across versions, is it with the same data? I've been able to replicate the problem in my stack, which might have a few distinctive features necessary for others to replicate the problem. The stack has, say, 2000 cards. Cards 2 through 2000 contain many fields and buttons, all belonging to the same group. Behave like a background is turned on. Card 1 is used for an index and some maintenance buttons, and so on. Two buttons on card 1 contain the sort scripts: --sort cards numeric by field intakesecs --sort cards text by field patient name Neither field intakesecs nor field patient name appears on card 1. These buttons have worked just fine since late versions of hyperCard. In version 7.0 they stopped working. The sort command seems not to be executing at all, judging by timing the script when it is working, in version 6.5 vs. when it is not working, in version 7.0 I found two workarounds. --Move my sort cards buttons to any card other than card 1. I didn't bother pasting them into the group, so group membership probably doesn't make a difference. --Paste field intakesecs and field patient name onto card 1. I put dummy values into those fields, don't know what happens if they are empty. I have not exhaustively investigated the issue, but my hypothesis is that the sort cards command looks for the sort index field on the first card it encounters. If the field is not found, the sort command terminates. Thanks for asking. I overlooked your question yesterday. 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
On Oct 27, 2014, at 11:08 AM, Timothy Miller wrote: The sort command seems not to be executing at all, judging by timing the script when it is working, in version 6.5 vs. when it is not working, in version 7.0 I meant version 6.6.5, not 6.5 ___ 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
On 10/27/2014, 1:08 PM, Timothy Miller wrote: --Paste field intakesecs and field patient name onto card 1. I put dummy values into those fields, don't know what happens if they are empty. They should sort to the front. I have not exhaustively investigated the issue, but my hypothesis is that the sort cards command looks for the sort index field on the first card it encounters. If the field is not found, the sort command terminates. You could test by getting the result after the sort command, it might tell you something. I suspect you'll find no such object in the error. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
On Oct 27, 2014, at 11:27 AM, J. Landman Gay wrote: On 10/27/2014, 1:08 PM, Timothy Miller wrote: --Paste field intakesecs and field patient name onto card 1. I put dummy values into those fields, don't know what happens if they are empty. They should sort to the front. I have not exhaustively investigated the issue, but my hypothesis is that the sort cards command looks for the sort index field on the first card it encounters. If the field is not found, the sort command terminates. You could test by getting the result after the sort command, it might tell you something. I suspect you'll find no such object in the error. Hi Jacque, The result from the failed sorts was empty. That's one of the reasons I suspect a bug. Cheers, 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
On October 27, 2014 3:32:05 PM CDT, Timothy Miller gand...@doctortimothymiller.com wrote: The result from the failed sorts was empty. That's one of the reasons I suspect a bug. Your first idea was probably right. If the sort field isn't on the current card, the sort doesn't happen. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
On Oct 27, 2014, at 1:45 PM, J. Landman Gay wrote: On October 27, 2014 3:32:05 PM CDT, Timothy Miller gand...@doctortimothymiller.com wrote: The result from the failed sorts was empty. That's one of the reasons I suspect a bug. Your first idea was probably right. If the sort field isn't on the current card, the sort doesn't happen. Right, but these buttons always worked until I upgraded to version 7.0. Why the change? A bug? A new feature? Or what? It's not a big deal. I found my workaround. I'm trying to be a responsible member of the LiveCode community. As far as I know, I'm expected to report possible bugs. If the community agrees it is a bug, it should be reported, right? If it's a new scripting rule, it should be mentioned in the dictionary. 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
I think you should report it as a bug. It's certainly a change in behavior so either ti's a coding bug or, if it was changed on purpose, it's a documentation bug. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Mon, Oct 27, 2014 at 2:18 PM, Timothy Miller gand...@doctortimothymiller.com wrote: On Oct 27, 2014, at 1:45 PM, J. Landman Gay wrote: On October 27, 2014 3:32:05 PM CDT, Timothy Miller gand...@doctortimothymiller.com wrote: The result from the failed sorts was empty. That's one of the reasons I suspect a bug. Your first idea was probably right. If the sort field isn't on the current card, the sort doesn't happen. Right, but these buttons always worked until I upgraded to version 7.0. Why the change? A bug? A new feature? Or what? It's not a big deal. I found my workaround. I'm trying to be a responsible member of the LiveCode community. As far as I know, I'm expected to report possible bugs. If the community agrees it is a bug, it should be reported, right? If it's a new scripting rule, it should be mentioned in the dictionary. 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 ___ 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
On 10/27/2014, 4:18 PM, Timothy Miller wrote: On Oct 27, 2014, at 1:45 PM, J. Landman Gay wrote: On October 27, 2014 3:32:05 PM CDT, Timothy Miller gand...@doctortimothymiller.com wrote: The result from the failed sorts was empty. That's one of the reasons I suspect a bug. Your first idea was probably right. If the sort field isn't on the current card, the sort doesn't happen. Right, but these buttons always worked until I upgraded to version 7.0. Why the change? A bug? A new feature? Or what? It's not a big deal. I found my workaround. I'm trying to be a responsible member of the LiveCode community. As far as I know, I'm expected to report possible bugs. If the community agrees it is a bug, it should be reported, right? If it's a new scripting rule, it should be mentioned in the dictionary. Tim Miller Right, okay. It's never wrong to report something you think may be a bug. They can always just close the report, but they'd rather know than not. So I'd say go ahead and do it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
On Tue, Oct 28, 2014 at 5:18 AM, Timothy Miller gandalf@doctortimothymiller .com wrote: Right, but these buttons always worked until I upgraded to version 7.0. Why the change? A bug? A new feature? Or what? Grab a copy of a 6.6.5 version of your stack that works as advertised; make two copies, appending '665' to one filename and '700' to the other. Open the '700' version in LC7, save in LC7 format and confirm that the stack no longer works as advertised. Got to the LC Quailty Control Centre: http://quality.runrev.com/ and report your findings and the simple steps required to see the 'failure'. Attach (upload) both stacks so they can see exactly what you are seeing. If your stack contains confidential information that you'd rather not share with the Runrev team, then you'll have to build a new stack with a couple of cards that reproduces the problem. This of course is a good thing because if you can, the problem is what you suspect, but if your new stack doesn't exhibit the same fault, then it isn't what you suspect and there must be other factors that are causing the problem. ___ 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
As I tell my own clients: Don't worry about backups... be paranoid! Hugh Senior FLCo ...and my backup negligence is forever cured. You're one of the lucky ones. Most of us don't get religious about backups until after we lose critical data. ___ 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
Timothy Miller wrote: Sorry about the panic yesterday. My “corrupted” stacks do open in 7.0 and I was able to save a version in format 5.5. They open up just fine in version 6.7. My precious data is retrieved... Really glad to hear that worked out, Tim. Phil Jimmieson submitted an excellent request for smarter messages when opening a newer stack format in an older version, which I added some notes to this morning in hopes of expediting it: http://quality.runrev.com/show_bug.cgi?id=12558 One way or another, let's hope that 7.0.1 will be able to notify us when we try to later open 8.0 stack files. ...and my backup negligence is forever cured. You're one of the lucky ones. Most of us don't get religious about backups until after we lose critical data. A tiny problem triggered my panic attack yesterday. That tiny problem persists. The following button script works in 6.7, doesn’t work in 7.0. I quote verbatim, trivial as it is: on mouseUp sort cards numeric by field intakeSecs answer the result end mouseUp The result is empty even when the script doesn’t work. Doesn't work as in doesn't sort the cards, leaving them in the original order? HmmI wonder if somehow card sorting didn't get the attention it needs in the string comparison overhaul for Unicode. I suppose this might be a 7.0 bug, but it seems likely that such a bug would have been discovered before now. 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. Anyone else here finding issues with card sorting in v7? -- 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
On Oct 25, 2014, at 11:17 AM, Richard Gaskin ambassa...@fourthworld.com wrote: Really glad to hear that worked out, Tim. Your kindness is appreciated. The result is empty even when the script doesn’t work. Doesn't work as in doesn't sort the cards, leaving them in the original order? Precisely. 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
Tim- Saturday, October 25, 2014, 11:17:54 AM, Richard wrote: Doesn't work as in doesn't sort the cards, leaving them in the original order? HmmI wonder if somehow card sorting didn't get the attention it needs in the string comparison overhaul for Unicode. I suppose this might be a 7.0 bug, but it seems likely that such a bug would have been discovered before now. 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. Anyone else here finding issues with card sorting in v7? 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? -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ 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
Mark Wieder 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? I just tried this in v7 and this statement: sort cards numeric by field intakeSecs ...works as expected, sorting the cards within the stack by the numeric value in the specified field. In fact, it seems to be a pretty smart sort, in which it will numerically sort all numeric values - even ignoring space characters - and non-numeric values are sorted alphabetically while preserving the numeric sort where it can (e.g. 11 sorts after 4). And weirder still, this behavior seems consistent in both 6.7 and 7.0. Tim, any chance you may have NULLs or other oddities in the data? When you test across versions, is it with the same 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
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