A nasty experience with "the currentcard"

Phil Davis revdev at pdslabs.net
Sat Feb 21 02:44:08 EST 2015


Try "current card" instead.

    go to current card of stack "x"
    put the customProperties["myData"] of current card of stack "x" into
    tMyPropsA
    etc.

It works.

Phil Davis


On 2/20/15 9:36 PM, Geoff Canyon wrote:
> It seems currentcard is undocumented. I don't even know where I came up
> with it. But it works in general:
>
>      put the long id of  the currentcard of the topstack
>
> works fine in the message box. It also works in the script of a button --
> generally. As it turns out, the above will give an error *if* the button is
> in a palette stack, but not if it's in a toplevel stack. (at least in 6.7.1
> on a mac) I can't really call it a bug since "currentcard" isn't in the
> dictionary. But it just cost me two hours of my life, so this my primitive
> yawp of frustration.
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

-- 
Phil Davis




More information about the use-livecode mailing list