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@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? > > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode