Determine the LC version of an existing stack

Peter M. Brigham pmbrig at gmail.com
Tue Dec 16 14:42:50 EST 2014


On Dec 16, 2014, at 2:25 PM, J. Landman Gay wrote:

> On 12/16/2014, 12:18 PM, Mike Bonner wrote:
>> IF I can dig up how
>> the engine tracks the version for stacks, i'll letcha know.
> 
> I'm pretty sure it must be reading the first few bytes of the file, like Klaus said. As far as I know, that's the only place the info is stored.

so,
put char 1 to 8 of url ("file:" & the effective filename of this stack)
seems to do the trick.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbr




More information about the use-livecode mailing list