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
hilitedbutton fn in Livecode 7 changed/bug?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: hilitedbutton fn in Livecode 7 changed/bug?
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
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
Re: hilitedbutton fn in Livecode 7 changed/bug?
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.
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.
Re: hilitedbutton fn in Livecode 7 changed/bug?
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.'
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.'