LV behavior

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
ameguira@gmail.com
Posts: 22
Joined: Mon Apr 18, 2016 4:57 pm

LV behavior

Post by ameguira@gmail.com » Wed Dec 21, 2016 2:21 pm

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

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LV behavior

Post by Klaus » Wed Dec 21, 2016 3:40 pm

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

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

Re: LV behavior

Post by dunbarx » Wed Dec 21, 2016 3:57 pm

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

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LV behavior

Post by Klaus » Wed Dec 21, 2016 4:01 pm

As long as the names are quoted, this is no problem, as I just tested! :D

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

Re: LV behavior

Post by dunbarx » Wed Dec 21, 2016 4:29 pm

@ Klaus.I would have bet so.

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

Craig

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: LV behavior

Post by [-hh] » Wed Dec 21, 2016 5:03 pm

ameguira wrote:... after few attempts, it will not work ...
Which one of the script lines is not working?
shiftLock happens

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

Re: LV behavior

Post by dunbarx » Wed Dec 21, 2016 5:35 pm

And after rebooting, does the handler work just fine thereafter?

ameguira@gmail.com
Posts: 22
Joined: Mon Apr 18, 2016 4:57 pm

Re: LV behavior

Post by ameguira@gmail.com » Wed Dec 21, 2016 7:54 pm

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

ameguira@gmail.com
Posts: 22
Joined: Mon Apr 18, 2016 4:57 pm

Re: LV behavior

Post by ameguira@gmail.com » Wed Dec 21, 2016 8:03 pm

I have to add:

I am using LC 8.1 Indy version

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LV behavior

Post by Klaus » Wed Dec 21, 2016 9:34 pm

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/

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 489
Joined: Thu Sep 04, 2008 6:23 am

Re: LV behavior

Post by jameshale » Thu Dec 22, 2016 1:01 am

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

Post Reply