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 »

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: 10502
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx »

Hi.

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

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

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

Post by FourthWorld »

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 »

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: 10502
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx »

Good luck.

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

Craig
Post Reply