LiveCode 5.5 Features

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

AtoZ
Posts: 64
Joined: Tue Mar 06, 2012 8:31 am
Location: San Diego, CA

LiveCode 5.5 Features

Post by AtoZ » Wed Apr 18, 2012 9:23 am

I'm interested in using some of the new features in LiveCode 5.5 (specifically, the styledText features for fields). However, I find the LiveCode 5.5 Notes are rather terse and lacking in examples. Does anyone know of any examples posted anywhere of coding using these features?
Using LiveCode 5.5 on Windows 7 Home Premium Edition, Service Pack 1

Image
On my way from A TO Z, I often end up AT OZ.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4012
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: LiveCode 5.5 Features

Post by bn » Wed Apr 18, 2012 10:37 am

Hi AtoZ,

Benjamin Beaumont of RunRev posted a stack that explains/shows the new field/Text features quite nicely.

I post it here since I don't think he would mind.
LiveCode55DP1field.livecode.zip
(25.95 KiB) Downloaded 413 times
Kind regards

Bernd

AtoZ
Posts: 64
Joined: Tue Mar 06, 2012 8:31 am
Location: San Diego, CA

Re: LiveCode 5.5 Features

Post by AtoZ » Wed Apr 18, 2012 7:03 pm

Thanks Bernd (and Benjamin!). I've just looked at the stack briefly, but it appears to be exactly the sort of thing I was looking for. Very helpful.
Using LiveCode 5.5 on Windows 7 Home Premium Edition, Service Pack 1

Image
On my way from A TO Z, I often end up AT OZ.

NigelS
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 83
Joined: Sat Oct 22, 2011 2:37 pm

Re: LiveCode 5.5 Features

Post by NigelS » Sun Apr 22, 2012 6:08 pm

Just what I was looking for. The example app is most useful.

micmac
Posts: 49
Joined: Mon May 30, 2011 9:00 am

Re: LiveCode 5.5 Features

Post by micmac » Mon Apr 23, 2012 10:10 am

bn wrote:Hi AtoZ,

Benjamin Beaumont of RunRev posted a stack that explains/shows the new field/Text features quite nicely.

I post it here since I don't think he would mind.
LiveCode55DP1field.livecode.zip
Kind regards

Bernd

Hi

Where exactly did he post it?

Thanks
Mic

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4012
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: LiveCode 5.5 Features

Post by bn » Mon Apr 23, 2012 10:29 am

Hi Mic,

it was a link on the developer list for the develper preview of 5.5.

Since 5.5 is now in the open and it is such a useful stack I feel I did not breach the non-disclosure agreement.

Actually I was baffled that RunRev did not include that stack or a similar one with the release of 5.5.

So the link is not publicly accessible.

Kind regards

Bernd

PS. I still like your solution to the 3-d graphic very much.

micmac
Posts: 49
Joined: Mon May 30, 2011 9:00 am

Re: LiveCode 5.5 Features

Post by micmac » Mon Apr 23, 2012 2:17 pm

bn wrote:Hi Mic,

it was a link on the developer list for the develper preview of 5.5.

Since 5.5 is now in the open and it is such a useful stack I feel I did not breach the non-disclosure agreement.

Actually I was baffled that RunRev did not include that stack or a similar one with the release of 5.5.

So the link is not publicly accessible.

Kind regards

Bernd

PS. I still like your solution to the 3-d graphic very much.
Thanks Bernd

Sehr schön to hear from you again.

Michael

Klaus
Posts: 13837
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: LiveCode 5.5 Features

Post by Klaus » Mon Apr 23, 2012 5:37 pm

Hi Michael,
micmac wrote:...Sehr schön to hear from you again...
what is that then for an english???

:D :D :D


Best

Klaus

AtoZ
Posts: 64
Joined: Tue Mar 06, 2012 8:31 am
Location: San Diego, CA

Re: LiveCode 5.5 Features

Post by AtoZ » Tue Apr 24, 2012 8:46 pm

The following warning appears on page 10 of the LC 5.5 Release Notes:
"Warning: File Format changes to LiveCode 5.5 mean stacks created in LC 5.5 DP2 and above
could have data loss if opened in older versions (field style related data)."
This seems quiet unfortunate to me. Ideally the new features should simply be ignored by older versions of LC without any data loss.

Given that there IS potential data loss, I have several questions:

1. Shouldn't 5.5 have been developed to automatically check the version of LC being used to open the stack, and stop the stack from opening before there is any data loss (along with an on screen message regarding this)?

2. Lacking that obvious solution, I assume that scripters could write their own code to do the same. Rather than making every 5.5 scripter spend time and effort writing and debugging such code (which for some us less skilled might even be impossible), could one of the LC coding experts post a routine for us to use?

3. Do we have any idea of how widely the 5.5 upgrade has been adopted by the LC community? (Since it was free, I would expect it to be fairly large, but I would also expect that a fair number have not upgraded if they saw no need for the new features.)

I look forward to resolving these questions quickly, since I have several stacks in progress where I was planning on using the new 5.5 features. Thanks in advance for any help with this.
Using LiveCode 5.5 on Windows 7 Home Premium Edition, Service Pack 1

Image
On my way from A TO Z, I often end up AT OZ.

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: LiveCode 5.5 Features

Post by shaosean » Tue Apr 24, 2012 9:47 pm

I think you may have read that wrong.. Basically do not open a 5.5 stack in 5.0 or 4.5 or 4.0 as this will cause the corrupt stack..

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: LiveCode 5.5 Features

Post by mwieder » Tue Apr 24, 2012 10:06 pm

Indeed. Not only that, but 5.5 format stacks won't even open in earlier LC versions, so there's no problem on that account.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4012
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: LiveCode 5.5 Features

Post by bn » Tue Apr 24, 2012 10:12 pm

Hi AtoZ,
1. Shouldn't 5.5 have been developed to automatically check the version of LC being used to open the stack, and stop the stack from opening before there is any data loss (along with an on screen message regarding this)?
Stacks developed with Livecode 5.5 (release version) and saved in 5.5 format (the default format) can not be opened in Livecode versions prior to LC 5.5. (Error message about corruption)

You can decide to save your stack in legacy format and those stacks can be opened in LC prior to 5.5 and before. But then of course you lose your 5.5 features like the new field formatting. On top of that your code that uses the new 5.5 features will throw errors because LiveCode versions < 5.5 will not know what to do with your code. (the stack from Ben Beaumont is an example: it was saved in 2.7 format but uses the new 5.5 syntax. You can open it in < 5.5 but it will not work.)

If you open stacks created in versions < 5.5 and you want to preserve the file format you have to check in preferences "Files and Memory" -> "preserve stack file versions on stacks saved in legacy format" before saving the stack.
3. Do we have any idea of how widely the 5.5 upgrade has been adopted by the LC community? (Since it was free, I would expect it to be fairly large, but I would also expect that a fair number have not upgraded if they saw no need for the new features.)
5.5 is not a free update, only to those on special subscription and within 3 months of purchase of LiveCode. So the adoption rate might be slower than if it were a free update.

Kind regards

Bernd

AtoZ
Posts: 64
Joined: Tue Mar 06, 2012 8:31 am
Location: San Diego, CA

Re: LiveCode 5.5 Features

Post by AtoZ » Tue Apr 24, 2012 11:03 pm

I'm sorry if I misinterped the warning. As it was written, it says (or at least strongly implies) that you CAN open 5.5 stacks in older versions. I would have understood it better if it had said something like "If you save a 5.5 stack in legacy format, and open it in an older version of LiveCode you may suffer data loss."

Frankly, I'm amazed that this has not generated more dismay and protest among LiveCode users. For me the upgrade to 5.5 was free (since I had recently purchased LiveCode), but if I had known about this before upgrading, I would have thought long and hard about cutting myself off from all the users of older versions of LiveCode.
Using LiveCode 5.5 on Windows 7 Home Premium Edition, Service Pack 1

Image
On my way from A TO Z, I often end up AT OZ.

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: LiveCode 5.5 Features

Post by shaosean » Tue Apr 24, 2012 11:25 pm

You can open the 5.5 format in the older versions, and that is what will cause the data corruption.. Saving as the legacy format will not save any of the new features, but there will be no data corruption when opening in older versions of Rev/LC

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4012
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: LiveCode 5.5 Features

Post by bn » Tue Apr 24, 2012 11:47 pm

Hi,

I tested with 5.5 and saved a simple stack with no code and just one field. Then tried to open that stack in 5.0.2. It refused to open the stack.
Frankly, I'm amazed that this has not generated more dismay and protest among LiveCode users. For me the upgrade to 5.5 was free (since I had recently purchased LiveCode), but if I had known about this before upgrading, I would have thought long and hard about cutting myself off from all the users of older versions of LiveCode
If you don't use any of the 5.5 features and you save in legacy format you don't cut yourself off of the users < 5.5.

What I do is to have the older versions of Livecode still on my computer to test things in older versions. This is perfectly legal and at times convenient. Just watch out for your preference files. If you open both versions at the same time preferences might get corrupted. That is not a big deal but you will have to reconfigure the preferences and you might lose the recent list. AND don't forget to check "preserve stack file versions on stacks saved in legacy format" because this also applies to the preferences stack. If you open both versions at the same time this setting can get lost.

And, as inconvenient as it may be, if RunRev wants to add features which necessitate a new file format then be it. The new features are well worth the change in file format in my opinion.

Kind regards

Bernd

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”