strange problems with SEND
mark at livecode.com
Fri Jan 17 12:31:13 EST 2020
On 2020-01-17 17:24, Klaus major-k via use-livecode wrote:
> ouch, sorry, TRUE! :-/
> However the other message "onlinekursinfo" is also from me and I have
> no idea why it should be delivered on:
> Sunday, February 2, 2070, I did not script that!?
I think you did ... Accidentally...
> THAT script also looked fine in the debugger.
> Will check again, but 2070 is definitevely WRONG in whatever pending
Remember that pending messages are not deleted by the engine until they
or you issue a cancel command.
This code essentially computes the 'future time' the message you were
put the date into tDatum
convert tDatum from date to dateitems
add 1 to item 3 of tDatum
put 8 into item 4 of tDatum
convert tDatum from dateitems to seconds
put tDatum - the seconds into tNeuesDatum
add the seconds to tNeuesDatum -- essentially what 'in time' does
convert tNeuesDatum from seconds to long system date
Now try removing `- the seconds` from the 6th line and see what date you
(My theory is in some iteration of your code, you missed that out but
script leaving you with a far future pending message!)
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps
More information about the use-livecode