Script Only Stack Properties

J. Landman Gay jacque at hyperactivesw.com
Sat Apr 4 13:20:56 EDT 2020


When a script only stack is opened, LC creates a temporary stack and plops 
the script into it. At that point its just like any other library stack. 
You could add images, controls, other scripts, custom props, anything. The 
only difference is that when the stack closes, the text of the stack script 
is written back to the file and everything else is lost.

I suppose you could put custom properties at the top of the stack script 
inside a comment block, and set them up normally by script when the stack 
opens.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 4, 2020 11:58:33 AM Bob Sneidar via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> Hi all.
>
> I just discovered an interesting aspect of script only stacks. They CAN 
> have Custom Properties… but ONLY while in memory! Once closed, the 
> properties disappear. Seems like a slight mod would be able to save these 
> properties as a separate file so that they can remain persistent.
>
> Gonna hafta look into this!
>
> Bob S
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode







More information about the use-livecode mailing list