Finding out what IDE/version a stack is associated with?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Norval Bard
Posts: 4
Joined: Tue Jun 16, 2015 6:52 pm

Finding out what IDE/version a stack is associated with?

Post by Norval Bard » Mon Jun 05, 2017 7:57 pm

Hi,
Is there some way to determine what IDE or what LC version a given stack was created with?
Thanx,
NB

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Finding out what IDE/version a stack is associated with?

Post by dunbarx » Mon Jun 05, 2017 9:59 pm

Hi.

Check out the "version" and the "environment" in the dictionary.

Craig Newman

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Finding out what IDE/version a stack is associated with?

Post by FourthWorld » Mon Jun 05, 2017 10:10 pm

In version 8.1 and later you can check the stack's minStackFileVersion property. For earlier versions you may need to check the binary header of the stack file, but since LC stacks are forward-compatible it's normally rare that you'd need to do that.

Have you encountered a problem working with older stacks?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Norval Bard
Posts: 4
Joined: Tue Jun 16, 2015 6:52 pm

Re: Finding out what IDE/version a stack is associated with?

Post by Norval Bard » Mon Jun 05, 2017 10:15 pm

Maybe I'm over-thinking it, but recently when using "save as..." under the IDE, I noticed that the the default setting was 'LC legacy' and since it's been taking an unusually long time for these simple stacks to save, I have wondered if they were being saved as legacy and not current versions.

I'll work on 'version' and 'environment', too, to learn that as well, thanks.
NB

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Finding out what IDE/version a stack is associated with?

Post by dunbarx » Mon Jun 05, 2017 11:05 pm

Good luck.

Note that in a standalone, the "version" returns the version the standalone was saved in.

Craig

Post Reply