Re: extremely weird and frustrating...

2014-04-02 Thread Bob Sneidar
point is that it seems to me that the dateTime sort does not work > properly. What you proposed is a workaround because dateTime does NOT work > properly, right? > > - Original Message - From: "John Dixon" > To: "How to use LiveCode" &

Re: extremely weird and frustrating... - Domain does not exist

2014-04-02 Thread Bob Sneidar
I think if you set the numberFormat to “00” and itemDelimiter to “:” you can add 0 to each item. Bob On Apr 2, 2014, at 01:15 , John Dixon wrote: > Another way to do this would be to put a 0 in front of the 'hours & minutes' > before you sort them... > Alex, it trying to help you... no need

Re: extremely weird and frustrating...

2014-04-02 Thread Alex Tweedly
33 seconds. So why is 25:34 not twenty-five minutes and 34 seconds? Last time I checked, there are 60 minutes in an hour. - Original Message - From: "Alex Tweedly" To: Sent: Wednesday, April 02, 2014 1:59 AM Subject: Re: extremely weird and frustrating... 25:34 and 34:55 are not

Re: extremely weird and frustrating...

2014-04-02 Thread Alex Tweedly
From: "Alex Tweedly" To: Sent: Wednesday, April 02, 2014 1:59 AM Subject: Re: extremely weird and frustrating... 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'.

Re: extremely weird and frustrating...

2014-04-02 Thread larry
dateTime sort does not work properly. What you proposed is a workaround because dateTime does NOT work properly, right? - Original Message ----- From: "John Dixon" To: "How to use LiveCode" Sent: Wednesday, April 02, 2014 2:15 AM Subject: RE: extremely weird and frustrating... Ano

Re: extremely weird and frustrating...

2014-04-02 Thread Ben Rubinstein
orkaround because dateTime does NOT work properly, right? - Original Message - From: "John Dixon" To: "How to use LiveCode" Sent: Wednesday, April 02, 2014 2:15 AM Subject: RE: extremely weird and frustrating... Another way to do this would be to put a 0 in front

Re: extremely weird and frustrating...

2014-04-02 Thread larry
Well Mark, I guess I do not know how to state minutes and seconds in the proper syntax for a correct dateTime sort. However, your piece of code below works perfectly. Thanks very much! Larry on mouseUp put fld 1 into myList set the itemDel to colon sort lines of myList numeric by it

Re: extremely weird and frustrating...

2014-04-02 Thread Mark Schonewille
Larry, I looked at this again. If I use the following script on mouseUp set the twelveHourTime to true put fld 1 into myList set the itemDel to colon sort lines of myList descending numeric dateTime put myList into fld 2 end mouseUp I get this result: 16:33 15:56 12:16 11:35 9:

Re: extremely weird and frustrating...

2014-04-02 Thread Mark Schonewille
OT work properly, right? - Original Message - From: "John Dixon" To: "How to use LiveCode" Sent: Wednesday, April 02, 2014 2:15 AM Subject: RE: extremely weird and frustrating... ___ use-livecode mailing list use-

Re: extremely weird and frustrating...

2014-04-02 Thread larry
; To: "How to use LiveCode" Sent: Wednesday, April 02, 2014 2:15 AM Subject: RE: extremely weird and frustrating... Another way to do this would be to put a 0 in front of the 'hours & minutes' before you sort them... Alex, it trying to help you... no need to be cheeky !...

RE: extremely weird and frustrating...

2014-04-02 Thread John Dixon
Another way to do this would be to put a 0 in front of the 'hours & minutes' before you sort them... Alex, it trying to help you... no need to be cheeky !... on mouseUp set itemdel to ":" repeat with count = 1 to the number of lines of fld 1 if the number of chars of item 1 of line c

Re: extremely weird and frustrating...

2014-04-02 Thread larry
ubject: Re: extremely weird and frustrating... 25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn&#x

Re: extremely weird and frustrating...

2014-04-02 Thread Alex Tweedly
25:34 and 34:55 are not valid dateTimes, so where those lines get sorted to is not well undefined; it looks as though LC simply decides to give them a '0:00'. Apart from those two lines, it looks (to me) like the result is correct. Isn't it ? -- Alex. On 02/04/2014 08:41, la...@significant

Re: extremely weird and frustrating...

2014-04-02 Thread Mark Schonewille
Larry, that should be sort lines of field myTimes descending dateTime I assume that myTimes is a variable, but if it isn't, then your lines should be sort lines of field "myTimes" descending dateTime -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Home

extremely weird and frustrating...

2014-04-02 Thread larry
Here is my script line: sort field myTimes descending dateTime And here is the result: 16:33 15:56 12:16 11:35 9:14 7:47 2:08 1:22 25:34 34:55 Here is my other script line: sort field myTimes ascending dateTime And here is the result for that: 25:34 34:55 1:22 2:08 7:47 9:14