Set the visible of

Jan Schenkel janschenkel at yahoo.com
Tue Oct 28 01:01:08 EST 2003


--- Thomas J McGrath III <3mcgrath at adelphia.net>
wrote:
> I am trying to hide a set of text fields before the
> card is opened and 
> then show them with a dissolve.
> The fields are named myLabel1, myLabel2 etc to
> myLabel8
> It don't work.....
> 
> on preOpenCard
>   repeat with v = 1 to 8
>      put quote & "myLabel" &v& quote into h
>      set the visible of Field h to false
>    end repeat
> end preOpenCard
> 

Hi Tom,

I think the engine is looking for a field with a quote
in its name. However, this gives me a chance to work
the wonders of the 'merge' function again :-)
Try the following script :

--
on preOpenCard
  repeat with v = 1 to 8
    put merge("field [[quote]]myLabel[[v]][[quote]]")
\
        into tFieldRef
    set the visible of tFieldRef to false
  end repeat
end preOpenCard
--

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/


More information about the use-livecode mailing list