Help for a non-code newbie!

J. Landman Gay jacque at hyperactivesw.com
Mon Jul 21 23:52:01 EDT 2003


On 7/21/03 10:57 PM, David Vaughan wrote:

> ...and here is another one but this one is a general solution rather 
> than specific to one project. I include this in stacks fairly routinely.
> 
> on hideFields
>   put the paramCount into k
>   repeat with x = 1 to k
>     hide field x
>   end repeat
> end hideFields
> 
> Put that in your stack script and wherever you want to hide fields, make 
> a call
> 
> hideFields 1,7,3,8 -- (etc)

Good solution. I bet you typed it from memory though. ;)

I think this works the way you meant:

on hideFields
   put the params into k
   delete word 1 of k -- this is the handler name
   replace quote with empty in k
   repeat for each item x in k
     hide field x
   end repeat
end hideFields

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list