Determine the LC version of an existing stack

Klaus major-k klaus at major-k.de
Sun Dec 14 11:17:12 EST 2014


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





More information about the use-livecode mailing list