Set the visible of

Thomas J McGrath III 3mcgrath at adelphia.net
Tue Oct 28 10:36:19 EST 2003


Klaus,

I think it was the fact that I had visual effects in QT going and most 
of my problems were random. after I put the dontuseQT and 
dontuseQTeffects in the random problems seem to have calmed down. When 
I was switching cards back and forth really fast then I really had 
problems and I was trying everything I could think of.

It seems to be OK now. the effects are a little slower though.

Thanks

Tom
On Tuesday, October 28, 2003, at 03:42 AM, Klaus Major wrote:

> Hi Thomas,
>
>> --- 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,
>
> and now a bit less irritating ;-) :
>
> You end with 2 quotes around the name of the field like ""field1""
> (I doubt that the name of your fields do have QUOTES in their names...)
>
> Script this:
>
> on preOpenCard
>   repeat with v = 1 to 8
>      set the visible of Field ("myLabel" & i) to false
>    end repeat
> end preOpenCard
>
> Hope that helps...
>
>
> Regards
>
> Klaus Major
> klaus at major-k.de
> www.major-k.de
>
> _______________________________________________
> 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