LV behavior
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 22
- Joined: Mon Apr 18, 2016 4:57 pm
LV behavior
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
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
Hi ameguira,
1. welcome to the forum!
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
1. welcome to the forum!

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
Is it possible the issue derives from the fact that "images" or "graphics" can be used as a native LC word?
I don't really have confidence in this possibility, but maybe change its name and try?
Craig Newman
Code: Select all
"answer the number of images"
Craig Newman
Re: LV behavior
As long as the names are quoted, this is no problem, as I just tested! 

Re: LV behavior
@ Klaus.I would have bet so.
@ameguira Have you tried this with earlier versions of LC?
Craig
@ameguira Have you tried this with earlier versions of LC?
Craig
Re: LV behavior
Which one of the script lines is not working?ameguira wrote:... after few attempts, it will not work ...
shiftLock happens
Re: LV behavior
And after rebooting, does the handler work just fine thereafter?
-
- Posts: 22
- Joined: Mon Apr 18, 2016 4:57 pm
Re: LV behavior
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
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
-
- Posts: 22
- Joined: Mon Apr 18, 2016 4:57 pm
Re: LV behavior
I have to add:
I am using LC 8.1 Indy version
I am using LC 8.1 Indy version
Re: LV behavior
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
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/
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

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
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'?
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'?