Does revert command not work on palettes?

Mark Waddingham mark at livecode.com
Fri Mar 4 04:50:37 EST 2016


On 2016-03-03 19:48, Richard Gaskin wrote:
> I have a routine that includes:
> 
>   set the defaultStack to tValidStackName
>   revert
> 
> ...and instead of reverting the specified stack it reverts the topmost
> toplevel stack.
> 
> Why?

Because that is the way it has always been...

I suspect the reasoning was that the topStack can be considered the 
top-most document stack, and you'd probably expect 'revert' in isolation 
to act on 'document' stacks.

The best thing here would be to add a variant:

    revert <stack>

So that its operation is entirely clear. Filed as enhancement 
http://quality.livecode.com/show_bug.cgi?id=17061

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




More information about the use-livecode mailing list