label filed properties

Mark Smith mark at maseurope.net
Sun Mar 18 15:24:20 EDT 2007


Matthias, if you haven't named the label fields, then this should work:

repeat with n = 1 to the number of fields in this card
   if "label" is not in the name of fld n of this card then put empty  
into fld n of this card
end repeat


best,

Mark


On 18 Mar 2007, at 16:51, runrev260805 at m-r-d.de wrote:

> Hi,
>
> until now i used Revolution just for manipulationg files (reading  
> and writing lines and so on).
>
> Now i want to create a special app with serveral forms in it. I am  
> using only text and label fields. I want to place a reset-button on  
> to the card, which resets all text fields. If i use the following  
> script
>
> on mouseUp
>   put "" into field "number"
>   put "" into field "name"
>   put "" into field "description"
> end mouseUp
>
> it works fine. But i have to include a line for each field.
>
> If i use
>
> on mouseUp
> put "" into any field
> end mouseUp
>
> I have to click serveral times, until all fields are resetted. But  
> not only the text fields, also the label fields are resetted.
>
> How can i reset all textfields with one click, without having the  
> label fields modified? Maybe a simple question, but i dont know the  
> answer.
>
> Regards,
>
> Matthias
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list