how do I collect all the buttons on a card?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
vkelmenson
Posts: 7
Joined: Thu Apr 11, 2013 11:03 pm

how do I collect all the buttons on a card?

Post by vkelmenson » Fri Feb 07, 2014 12:52 am

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

vkelmenson
Posts: 7
Joined: Thu Apr 11, 2013 11:03 pm

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

Post by vkelmenson » Fri Feb 07, 2014 1:47 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Fri Feb 07, 2014 5:30 am

Bravo.

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

Craig Newman

vkelmenson
Posts: 7
Joined: Thu Apr 11, 2013 11:03 pm

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

Post by vkelmenson » Fri Feb 07, 2014 11:44 pm

you are certainly correct Craig. Vic

Post Reply