Set the visible of

Thomas J McGrath III 3mcgrath at adelphia.net
Tue Oct 28 01:51:58 EST 2003


I have been getting very odd behavior all night on this. at some points 
I have to save and close stack in order for it to work right. I may 
have over done it. some times it works and others it doesn't.

I will work on it tomorrow.

Thanks

Tom
On Tuesday, October 28, 2003, at 01:01 AM, Jan Schenkel wrote:

> --- 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/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>

Thomas J McGrath III
Advanced Media Group

220 Drake Rd.
Bethel Park, PA 15102
3mcgrath at adelphia.net




More information about the use-livecode mailing list