plugin stack automatically saving in new file format

Klaus major-k klaus at major-k.de
Thu Dec 18 16:39:11 EST 2014


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





More information about the use-livecode mailing list