Groups forget who they are
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Groups forget who they are
Probably long overdue for asking this, but sometimes LC tends to forget the name of a group or misidentifies it, particulalry when numbers are used. For instance, LC think grp "3" is grp "2"
It's probably some form of memory issue. So if I close and clear from memory, does this resolve this?
It's probably some form of memory issue. So if I close and clear from memory, does this resolve this?
Re: Groups forget who they are
No memory issue or something, this is the way LC works!
Therefore:
NEVER EVER name your objects with a number!
Since everything is a STRING for LC
-> button "3"
is correctly treated as
-> button 3
Therefore:
NEVER EVER name your objects with a number!
Since everything is a STRING for LC
-> button "3"
is correctly treated as
-> button 3
Re: Groups forget who they are
yep that ^^
button "3" is interpreted as button number 3. That caught me out recently when i was using stacked graphics numbered 1-16; i just prefixed some text to the number and it sorted it.
button "3" is interpreted as button number 3. That caught me out recently when i was using stacked graphics numbered 1-16; i just prefixed some text to the number and it sorted it.
Re: Groups forget who they are
What everyone said.
There are good reasons to have numbers in the name of your controls, though, for reference, for ordering, whatever. But in those cases, for buttons, say:
myButton1
myButton2
myButtion3, etc.
Or even:
1myButton
2myButton
3myButton, etc.
One or two extra lines of code will access the order of these things handily.
Craig
There are good reasons to have numbers in the name of your controls, though, for reference, for ordering, whatever. But in those cases, for buttons, say:
myButton1
myButton2
myButtion3, etc.
Or even:
1myButton
2myButton
3myButton, etc.
One or two extra lines of code will access the order of these things handily.
Craig
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Groups forget who they are
Klaus,who knows, says it the "way things are".NEVER EVER name your objects with a number!
Re: Groups forget who they are
Thanks- that actually fixed it. I take it the order you add objects, such as groups, is group 1, group 2, etc ... even if you call them group "3", group "4", etc.
I tend to number groups within a list of groups. But, knowing what you just told me, that helps a lot in avoiding or resolving that problem.
Thanks Klaus (and the gang)!
I tend to number groups within a list of groups. But, knowing what you just told me, that helps a lot in avoiding or resolving that problem.
Thanks Klaus (and the gang)!