Because the point was to demonstrate different script lines, some of
which work and one of which doesn't - but which to my simple mind should
have all worked.
(and a couple of kind people explained why that one was different :-)
It was not a "real" fragment of code - in that case I would indeed have
simply set the vis of tName.
Thanks
Alex.
On 17/06/2019 16:46, Bob Sneidar via use-livecode wrote:
Why aren't you setting the vis of tName?
Bob S
On Jun 10, 2019, at 17:44 , Alex Tweedly via use-livecode
<use-livecode@lists.runrev.com> wrote:
OK, this code produces an error - but I can't see why (and I worry about that
:-)
I have a field inside a group inside a group ....,
and the following code :
on mouseup
local tName, t1, t2
put the long name of fld "F" into tName
put tName & ",12,13" into t1
put "t1" && t1 &CR after msg
put item 1 of t1 into t2
set the vis of t2 to TRUE
put "t2 was OK" &CR after msg
set the vis of (item 1 of t1) to TRUE
put "using parens OK" &CR after msg
set the vis of item 1 of t1 to TRUE -- this line fails !!
put "here" &CR after msg
end mouseup
that line fails, with the error message
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode