Determine the LC version of an existing stack

Mike Bonner bonnmike at gmail.com
Tue Dec 16 14:44:58 EST 2014


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