Re: sort bug

2023-09-06 Thread Geoff Canyon via use-livecode
From the original email: If the function myVal encounters a run-time error (in the example if one of the items is not a number) the sort command fails silently: the script exits at that code line and the user is unaware that the sort (and the rest of the handler) were not executed. To be clear:

Re: Sort bug and also multilevel sorting

2023-09-06 Thread Neville Smythe via use-livecode
Ralph: Interesting. Your code works as you present it, sorting the given items by the sortkey function f1 which adds 1 to each item. I do get the “sorting failed” dialog. But if I try the same thing using myVal modified as you suggest, which adds the first and second items of each line of data

Re: LC server, on-rev and time zones

2023-09-06 Thread jbv via use-livecode
Just tested on On-Rev and it works. Thank you, that's very helpful. Le 2023-09-06 09:39, matthias rebbe via use-livecode a écrit : You could try to set the $TZ variable. I did not try on On-Rev/LivecodeHosting, but on a HostM Server which also has Livecode Server installed. This script here

Re: LC server, on-rev and time zones

2023-09-06 Thread matthias rebbe via use-livecode
You could try to set the $TZ variable. I did not try on On-Rev/LivecodeHosting, but on a HostM Server which also has Livecode Server installed. This script here for example would set the timezone first to Germany and outputs the current time and then for New York. <?lc put

LC server, on-rev and time zones

2023-09-06 Thread jbv via use-livecode
Hi list, How do you handle different time zones in server scripts ? For example, I and my clients are in Europe, so dates and times need to be consistent with the local time zone. But on-rev servers are located in the US East coast, so there is presently a 6 hours difference. Furthermore,

Re: Sorting by item ... of each and item ... of each

2023-09-06 Thread Craig Newman via use-livecode
Matthias. I do not have your original data. But try using “&” instead of “and”. Craig > On Sep 5, 2023, at 5:05 PM, Ralph DiMola via use-livecode > wrote: > > You can at least detect if the sorting function has failed using a global > variable. > > global s1 > > command test1 > local t1