Page 1 of 1

hide groups

Posted: Thu Nov 25, 2010 11:07 pm
by bsouthuk
Hi All

Could you let me know if it is possible to hide all groups and fields within a stack by clicking a button? Is it a simple one line of code for this?

Thanks

Daniel

Re: hide groups

Posted: Thu Nov 25, 2010 11:28 pm
by Dixie
bsouthuk...

Code: Select all

repeat with count = 1 to the number of groups of this card
  set the vis of group count of this card to false
end repeat
Oops... I didn't read your post very well... the above would hide the groups on just one card. To hide all the groups within a stack then you would have to loop through all the cards..

Code: Select all

repeat with count = 1 to the number of cards of this stack
  put the number of groups of card count into groupCount
  repeat with count2 = 1 to groupCount
    set the vis of group count2 of card count to false
  end repeat
end repeat
be well

Dixie