"template" stack in custom property
Klaus major-k
klaus at major-k.de
Fri Aug 2 13:56:56 EDT 2019
Hi all,
in case someone is interested.
> Am 02.08.2019 um 16:00 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>
> Hi all,
>
> I found a workaround by creating two handlers and use them with a little dealy.
>
>> Am 02.08.2019 um 14:59 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>>
>> Hi friends,
>>
>> I have done this a lot in the past, but currently got stuck with this in LC 9.5
>> I store a stack in a custom property and open it via script like:
>> ...
>> put "NewJob_" & the seconds into tName
lock messages
## Now every line in the handler is being executed.
>> go invisible stack (the cTemplateStack of this stack)
>> ## Works so far, the stack is in -> the openstacks
>>
>> ## However NOTHING that comes after that line will ever get executed?
>> ## restarted LC a couple of time, no dice...
>>
>> ## Even the BREAKPOINT is being ignored!?
>> breakpoint
>> answer "asfasdasdasdasdasd"
>> ...
looks like this only happens if the stack in the CP does have a "pre-/openstack" handler!?
If I add "lock messages" everything works as advertised.
This does not happen if I go to a stack on my HD!?
Oh my... :-/
Best
Klaus
--
Klaus Major
https://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list