How to find the name of the recent card?
David Bovill
david at viral.academy
Sat Jul 2 04:34:29 EDT 2016
In a preOpenCard handler I cannot find the name of the recent card - the
card that you "came from". As far as i can tell this is a very basic bug
that goes back to at least version 7.
Does anyone have a work around The only thing i can think of is to do my
own logging in an openCard or closeCard handler. is there a sane reason why
preOpenCard is not reporting the value correctly or another way to get the
value of the recent card?
I filed this as a bug - http://quality.livecode.com/show_bug.cgi?id=17939
On 1 July 2016 at 19:39, David Bovill <david at viral.academy> wrote:
> on preOpenCard
>> put the short name of recent card
>> pass preOpenCard
>> end preOpenCard
>
>
> Why is the recent card when specified in a preOpenCard handler the name of
> the current card, while it is the recent card if the same script is called:
>
> on openCard
>> put the short name of recent card
>> pass openCard
>> end openCard
>
> Given that preOpenCard is called before actually displaying the card and
> the openCard handler being called this seems wrong. Is this behavior
> present in older versions of LC - or is this a bug?
>
>
More information about the use-livecode
mailing list