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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LV behavior

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: LV behavior

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LV behavior

Post by Klaus »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: LV behavior

Post by dunbarx »

@ 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] »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: LV behavior

Post by dunbarx »

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 »

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 »

I have to add:

I am using LC 8.1 Indy version
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: LV behavior

Post 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/
jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 494
Joined: Thu Sep 04, 2008 6:23 am

Re: LV behavior

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