Determine the LC version of an existing stack

Mike Bonner bonnmike at gmail.com
Sun Dec 14 11:21:02 EST 2014


You can also do a sneaky if you want to see the stackfileversion of one
stack from another.

you can: send "put the stackfileversion into <wherever you want it to go>"
to stack "stackname"

On Sun, Dec 14, 2014 at 9:17 AM, Klaus major-k <klaus at major-k.de> wrote:
>
> Hi David,
>
> > Am 14.12.2014 um 17:02 schrieb David Epstein <dfepstein at comcast.net>:
> >
> > Is there a way to determine by script which version of LC’s file format
> an existing stack uses?
> > I see that I can set the file format version when saving a stack by
> setting the stackFileVersion,
> > but I’d like to write a script that saves a stack and leaves unchanged
> its prior version.
>
> you can read and check the first 8 chars/bytes of the stack file!
> These will be:
> REVO7000
> for stacks saved with >=LC 7.x and:
> REVO2700
> for stacks < 7.x
>
> > Many thanks.
> >
> > David Epstein
>
> 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