Execution Error
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Execution Error
Thanks for checking Bernd, that makes more sense now.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Execution Error
Maybe I worded that poorly, I'll try again.
After I asked the question about how preOpen works, I thought asking was a bit silly since I could just test out my understanding of the situation quickly enough by sticking a field on a card and calling the preOpen just as the code posted in the OP's first post showed.
After setting up the stack along that line, and not getting the error, it showed me that my interpretation of how a stack opens was incorrect.
Thank you for the clarificationThe preOpenCard message allows us to set things up before the card is displayed for the user. Any objects on the card are there and fully addressable, they just haven't been rendered to screen yet.


-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Execution Error
Personally I love
preOpenStack and preOpenCard
because you can "tidy up your bedroom before Mum comes in,"
when the alternative is to lock the screen and leave end-users picking
their teeth, which is not good at all (well, that's what my dentist told me.).
Empty all those fields that might contain data from previous visits,
move the "sprites" in a game back to their starting positions,
and so on and so forth. Love them!
-
preOpenStack and preOpenCard
because you can "tidy up your bedroom before Mum comes in,"
when the alternative is to lock the screen and leave end-users picking
their teeth, which is not good at all (well, that's what my dentist told me.).

Empty all those fields that might contain data from previous visits,
move the "sprites" in a game back to their starting positions,
and so on and so forth. Love them!
-
Last edited by richmond62 on Wed Sep 25, 2019 8:46 pm, edited 2 times in total.
Re: Execution Error
Yep, now that my understanding of how it works is better, it certainly sounds like a neat feature 


Re: Execution Error
Bernd,
Thanks for the response and direction. I will include the missed code.
Thanks all; your input is appreciated.
Keith
Thanks for the response and direction. I will include the missed code.
Thanks all; your input is appreciated.
Keith