please help!!
Geoff Canyon
gcanyon at gmail.com
Mon Jun 9 03:53:50 EDT 2014
I created a test stack. I created six buttons and grouped them. I ran the
following in a seventh button. It never failed.
I'm using 6.5.2. Somewhere along the way the more specific childControlIDs
was added. I didn't know if it is available in 6.1.1 so I didn't use it.
on mouseUp
repeat 1000
lock screen
repeat for each line tID in the controlids of grp 1
set the label of control id tID to char random(5) of "1234?"
end repeat
-- this is the important code for your purpose
repeat for each line tID in the controlids of grp 1
set the opaque of control id tID to (the label of control id tID
is "?")
end repeat
unlock screen
wait 0 ticks
repeat for each line tID in the controlids of grp 1
if the opaque of control id tID is not (the label of control id
tID is "?") then
answer "Problem!"
exit repeat
end if
end repeat
end repeat
end mouseUp
On Sat, Jun 7, 2014 at 9:41 PM, <larry at significantplanet.org> wrote:
> I am using 6.1.1 (rc 4) on XP
>
> I have spent HOURS trying to do something that seems fairly simple.
>
> I have a column of buttons labeled "tile11", "tile12", etc
>
> After I label the buttons, they are all alpha-numeric characters except
> for one being labeled "?"
>
> Then I call up the following command:
>
> on doOpaque
>
> put 0 into x
>
> repeat rowNum times
>
> put x + 1 into x
>
> put ("tile1" & x) into thisButton
>
> if the label of button thisButton = "?" then
>
> set the opaque of button thisButton to true
>
> else
>
> set the opaque of button thisButton to false
>
> end if
>
> end repeat
>
> end doOpaque
>
>
>
> If I debug and step through it, it always seems to work. However if I
> just run it, it invariably sets the opaque of the "?" button to false and
> some other button (NOT "?") to true.
>
> I'm really going crazy with this and would appreciate it if anyone knows
> why this is happening.
>
> Thanks in advance, Larry
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list