hilitedbutton fn in Livecode 7 changed/bug?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cwkalish
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 78
Joined: Thu Sep 30, 2010 2:24 am

hilitedbutton fn in Livecode 7 changed/bug?

Post by cwkalish »

It seems that the hilitedbutton property has changed in Livecode 7. When I ask for the hilitedbutton of a group when no button is hilited, I get a number 1 greater than the number of buttons. In previous versions of Livecode I would get 0.

This has wreaked some havoc on functions that check to see if the user has selected anything.

Was this a deliberate change? It seems like the old system (return 0 when nothing hilited) makes more sense. Now if I add another button to the group, I need to change the handler that checks for selections. Perhaps there is a better way to detect if a button is hilited in a group than using this property?

Thanks for any pointers.

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

Re: hilitedbutton fn in Livecode 7 changed/bug?

Post by Klaus »

Hi Chuck,

just tested with LC 6.7 RC3 and works as exspected.
Did you try with LC 7.01 RC3, which came out yesterday?


Best

Klaus
cwkalish
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 78
Joined: Thu Sep 30, 2010 2:24 am

Re: hilitedbutton fn in Livecode 7 changed/bug?

Post by cwkalish »

RIght, it works fine with 6.7 (returns 0), but not with 7
People working on my project had noticed the problem, I think they downloaded an advanced copy of 7?
I downloaded 7 last night and found the problem.
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: hilitedbutton fn in Livecode 7 changed/bug?

Post by Klaus »

Hi Chuck,

please consider to bug report this: http://quality.runrev.com
Thanks!


Best

Klaus
cwkalish
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 78
Joined: Thu Sep 30, 2010 2:24 am

Re: hilitedbutton fn in Livecode 7 changed/bug?

Post by cwkalish »

I tried to submit a bug, but couldn't. I keep getting the

A value must be set for the 'Desktop OS' field.

error, but there seems to be no place to indicate this on the bug form.

I'll submit a bug report on the bug report.'
Attachments
Screen Shot 2014-12-06 at 10.18.44 PM.png
Post Reply