what's "this" stack

jonathandlynch at gmail.com jonathandlynch at gmail.com
Sun Nov 14 20:42:46 EST 2010


Is one stack a substack of the other? If so, both are saved together.

------Original Message------
From: Mark Smith
Sender: use-revolution-bounces at lists.runrev.com
To: use-revolution at lists.runrev.com
ReplyTo: How to use Revolution
Subject: what's "this" stack
Sent: Nov 14, 2010 8:35 PM


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
understand....

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
notepad)?
   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
"save".

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?

Thanks

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


Sent from my Verizon Wireless BlackBerry


More information about the use-livecode mailing list