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:
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
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 f
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.
<À?ÀlÀcÀ
Àput "Europe/B
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, switchi
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
>