visual effect not working (it used to in the 80 th HyperScript)

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Paul-Luc
Posts: 1
Joined: Sat Apr 15, 2006 4:20 am

visual effect not working (it used to in the 80 th HyperScript)

Post by Paul-Luc » Mon Feb 25, 2019 4:17 pm

This problem seems quite simple, but I can't find the solution.

I wrote this script :

on openCard
unlock screen
show image "Bulle 1" visual effect "wipe" right very slow
show fld "Parole 1" visual effect "wipe" right very slow
end openCard

These 2 objets (hidden before) are normally shown but without any effect.

Can you please explain me why the visual effect doesn't work ?

Sorry for my poor english and maybe the bad place to post this topic. I'am a new user - not used to the forums, even in French

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by AndyP » Mon Feb 25, 2019 4:46 pm

No problem understanding you.

you need to change this

Code: Select all

show image "Bulle 1" visual effect "wipe" right very slow
to

Code: Select all

show image "Bulle 1" with visual effect "wipe" right very slow
I just tried this and it needs the "with" to work correctly.
Andy .... LC CLASSIC ROCKS!

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

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by dunbarx » Mon Feb 25, 2019 4:47 pm

Hi.

Your English is fine.

You just forgot a word ("with") to make the syntax correct:

Code: Select all

show image "Bulle 1" WITH visual effect "wipe" right very slow
Craig Newman

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

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by dunbarx » Mon Feb 25, 2019 4:53 pm

@ Andy.

Odd that omissions like this simply fail to work, but do not throw an error at compile time. LC seems far more lenient, or rather lazy, in this regard than HC ever was. I wish the engine complained more than it does. It would make debugging easier, which may have thrown the OP; he got no feedback at all about the impending failure to work correctly. LC knew it would not work, it just wasn't saying anything about it.

This issue revolves around missing, but required, keywords. On the other side of that coin, LC will tolerate extraneous words here and there and proceed just fine. I am not sure which is more annoying :wink:

Craig

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

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by FourthWorld » Mon Feb 25, 2019 6:11 pm

dunbarx wrote:
Mon Feb 25, 2019 4:53 pm
Odd that omissions like this simply fail to work, but do not throw an error at compile time. LC seems far more lenient, or rather lazy, in this regard than HC ever was. I wish the engine complained more than it does. It would make debugging easier, which may have thrown the OP; he got no feedback at all about the impending failure to work correctly. LC knew it would not work, it just wasn't saying anything about it.
Is that syntax error flagged in HyperCard?

I agree, of course, that the more thorough error-checking is the better the experience for everyone. Apple had a few advantages LC doesn't: millions of testers (HC was bundled with every Mac), and less than 1/4th the number language tokens (single platform, fewer object types, etc.).

An interpreter can catch many things during compilation, but there will be edge cases dealing with specific combinations of language elements that will inevitably fall through the cracks. I've never seen an interpreter yet that doesn't share this common weakness.

When we consider the combinatorial explosion of possibilities for combining language elements, it's pretty amazing that any interpreter can catch as much as it can. But xTalks are notorious for not being designed for compilation, so the level of effort needed to move as much as possible from compile-time to execution is not trivial.

That said, once a combination is found that falls through the cracks, a bug report is usually all that's needed to have that error-check added to the compiler.

Has this one been reported?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by dunbarx » Mon Feb 25, 2019 6:34 pm

Richard.

Well explained. I will mention this to QCC and see if they panic.

Craig

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by bogs » Mon Feb 25, 2019 7:28 pm

I'll save some time and panic for them!
ImageImageImage
Image

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

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by dunbarx » Mon Feb 25, 2019 9:15 pm

Filed # 21853

Don't panic.

Craig

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by bogs » Mon Feb 25, 2019 9:58 pm

OK.
(Phwew)
Image

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by AndyP » Tue Feb 26, 2019 10:08 am

Panic later, when the panics over!
You'll have more time to enjoy it :wink:
Andy .... LC CLASSIC ROCKS!

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by bogs » Tue Feb 26, 2019 12:08 pm

I definitely need to drink more coffee, that 40 cups a day ain't cutting it :P
Image

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

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by dunbarx » Tue Feb 26, 2019 3:21 pm

Panos confirmed what Richard spoke about, that the parser oftentimes will "read" a line of code, and if that line begins with a valid LC statement, it may well ignore anything that follows. This is not a science.

We have all seen trailing oddities that seem to be ignored by the parser, for better or worse.

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: visual effect not working (it used to in the 80 th HyperScript)

Post by jacque » Tue Feb 26, 2019 5:50 pm

I'll just add that the quotes around "wipe" aren't needed either. Things must have changed since I was warned not to quote any visual effects, apparently it no longer throws an error.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply