Page 1 of 1

LV behavior

Posted: Wed Dec 21, 2016 2:21 pm
by ameguira@gmail.com
Hi

I am using a very simple script like this:

on mouseUp
hide group "graphics"
hide group "values"
hide fld "conclusion"
show group "images"
end mouseUp

the first time it works and after few attempts, it will not work unless I reboot LC
Strange no ?

Thanks

Re: LV behavior

Posted: Wed Dec 21, 2016 3:40 pm
by Klaus
Hi ameguira,

1. welcome to the forum! :D

2. Of course this is not intended behavior and does not happen usually.
What platform and OS version are you on and what version of LC are you using?


Best

Klaus

Re: LV behavior

Posted: Wed Dec 21, 2016 3:57 pm
by dunbarx
Is it possible the issue derives from the fact that "images" or "graphics" can be used as a native LC word?

Code: Select all

"answer the number of images"
I don't really have confidence in this possibility, but maybe change its name and try?

Craig Newman

Re: LV behavior

Posted: Wed Dec 21, 2016 4:01 pm
by Klaus
As long as the names are quoted, this is no problem, as I just tested! :D

Re: LV behavior

Posted: Wed Dec 21, 2016 4:29 pm
by dunbarx
@ Klaus.I would have bet so.

@ameguira Have you tried this with earlier versions of LC?

Craig

Re: LV behavior

Posted: Wed Dec 21, 2016 5:03 pm
by [-hh]
ameguira wrote:... after few attempts, it will not work ...
Which one of the script lines is not working?

Re: LV behavior

Posted: Wed Dec 21, 2016 5:35 pm
by dunbarx
And after rebooting, does the handler work just fine thereafter?

Re: LV behavior

Posted: Wed Dec 21, 2016 7:54 pm
by ameguira@gmail.com
Hi dunbarx, Hi Klaus

Many thanks for your posts

I am using Window 10 and LC 8.1.
Regarding the names "graphics" and "images" it could be a possibility, but I had the problem with similar script but with other names.
After rebooting it works till the next problem.
I have also a video (player object), can that be the problem?

I am very confused, because it's not the first time that I observe (when the code is simple and works), that LC acts no "rationnaly"

All the best

Re: LV behavior

Posted: Wed Dec 21, 2016 8:03 pm
by ameguira@gmail.com
I have to add:

I am using LC 8.1 Indy version

Re: LV behavior

Posted: Wed Dec 21, 2016 9:34 pm
by Klaus
All in all, this should not happen, no matter if you have a player object on the card or not!

If you like you can send me the stack (or a stripped down version) and I will take a look,
guessing is so very ineffective :D

Send it to:
klaus AT major-k.de

P.S.
In the meantime please load the latest version 8.1.2 and try again:
http://downloads.livecode.com/livecode/

Re: LV behavior

Posted: Thu Dec 22, 2016 1:01 am
by jameshale
Sorry, doesn't seem to be enough information.
Your button script hides some objects and shows an object.
What do you mean by it works a while then doesn't?

Once you run it once nothing else will happen unless you have been doing other things.
So I am guessing you are saying you press the button, do some other stuff which makes some or all of the objects previously hidden reappear and the revealed object disappear and then press the button again.
After doing this a few times it stops working.

The real question is "what stops working?"

If this is the case couldn't the problem be in what you have been doing between button presses'?
If you look at you card/stack in the project browser has anything changed?
If you trace the scripts being run do they do what you expect of them'?