Page 1 of 1

how do I collect all the buttons on a card?

Posted: Fri Feb 07, 2014 12:52 am
by vkelmenson
Hi everyone, I am writing a small stack to display line graphs. I am using transparent buttons to label the axes. When I wish to clear and draw a new
graph, I am having a problem. I know how to clear the drawn graph but how do I delete the buttons. If I could get a list or collection of all the buttons
on the card, I can destroy them in a loop? I suppose that I could delete the card and create a new one. But is there another way?
Thanks in advance for any help. I will be able to look back in a few hours but then probably not for 2 day. Vic

Re: how do I collect all the buttons on a card?

Posted: Fri Feb 07, 2014 1:47 am
by vkelmenson
never mind, I figured it out."repeat with k = 1 to the number of buttons" etc. It is interesting that I struggled with this for 2 nights and as soon as
I posted a question, the answer came to me. Anyhow, I have learned a bit about Livecode looking through the documents. Vic

Re: how do I collect all the buttons on a card?

Posted: Fri Feb 07, 2014 5:30 am
by dunbarx
Bravo.

The hard part is sticking with it until it comes...

Craig Newman

Re: how do I collect all the buttons on a card?

Posted: Fri Feb 07, 2014 11:44 pm
by vkelmenson
you are certainly correct Craig. Vic