plugin stack automatically saving in new file format

Chris Sheffield cs_livecode at icloud.com
Thu Dec 18 16:48:55 EST 2014


Excellent. Thank you, and thanks to Mike as well. I’ll implement that in my code.

> On Dec 18, 2014, at 2:39 PM, Klaus major-k <klaus at major-k.de> wrote:
> 
> Hi Chris,
> 
>> Am 18.12.2014 um 21:30 schrieb Chris Sheffield <cs_livecode at icloud.com>:
>> 
>> I have a custom plugin stack that I use to quickly open frequently used stacks. It has a “save this stack” command in its closeStack handler. If I’m working in LC 7.0+ the stack is saving with the new file format, and therefore won’t open in pre-7.0 versions of LiveCode. I though once a stack was saved in a legacy format, it would stay in that format. Is that not the case? Is there any way to prevent the file format change when saving a stack?
> 
> I think "the stackfileversion" global property will help here!
> 
> Do something like this:
> ...
> ## Save current stackfileversion value:
> put the stackfileversion into tOldSFV
> 
> ## See dictionary for other possible values
> set the stackfileversion to "5.5"
> save this stack
> 
> ## Restore old value:
> set the stackfileversion to tOldSFV
> ...
> 
>> Thanks,
>> Chris
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
> 
> 
> _______________________________________________
> 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