what's "this" stack

Mark Smith Mark_Smith at cpe.umanitoba.ca
Sun Nov 14 20:35:55 EST 2010

Hi, I recently wrote this code which works fine....

on savenotes
   modeless stack "save"
   save this stack
   wait 360 millisecs
   close stack "save"
end savenotes

when i went back to document it I stumbled across a sort of confusion in my

on savenotes
   modeless stack "save" -- opens a new stack "save" as a modeless window
   save this stack  -- saves "this" stack. Which stack is "this" (save or
   wait 360 millisecs
   close stack "save"
end savenotes

I suddenly realized that I was using the "save this stack" command with 2
stacks open, the primary stack called "notepad" and a secondary stack called

It appears that rev knows "which is which" even thought from the code it is
quite confusing. Would it be better to say "save stack notepad" instead?


-- Mark

View this message in context: http://runtime-revolution.278305.n4.nabble.com/what-s-this-stack-tp3042392p3042392.html
Sent from the Revolution - User mailing list archive at Nabble.com.

More information about the use-livecode mailing list