Determine the LC version of an existing stack

Mike Bonner bonnmike at gmail.com
Tue Dec 16 15:24:46 EST 2014


just created a stack in lc, 4.6.3 and saved it, the
crevgeneral["stackfileversion"] of stack "testing" reports 2.7.

On Tue, Dec 16, 2014 at 12:44 PM, Mike Bonner <bonnmike at gmail.com> wrote:
>
> For those who use multiple version, the manual way is best.
>
> On Tue, Dec 16, 2014 at 12:42 PM, Peter M. Brigham <pmbrig at gmail.com>
> wrote:
>>
>> 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
>>
>> _______________________________________________
>> 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