# Creating buttons at run-time

**URL:** <https://forum.kirupa.com/t/creating-buttons-at-run-time/145731>\
**Category:** Uncategorized\
**Created:** [April 25, 2005, 1:01pm UTC](https://forum.kirupa.com/t/creating-buttons-at-run-time/145731 "2005-04-25T13:01:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marty177](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@marty177](https://forum.kirupa.com/u/marty177)\
**Post date:** [April 25, 2005, 1:01pm UTC](https://forum.kirupa.com/t/creating-buttons-at-run-time/145731/1 "2005-04-25T13:01:45Z")

</div>

G’Day,

I am wanting to learn if there is a way to take the contents of an array, which is full of texttype, and use them to create a stack of buttons. Now the actual text I have in the array will change every time the program is run.

For example, let’s say my array is [“apples”,“oranges”,“pears”]  
I want to create three buttons (in this example) so that it appears

apples  
oranges  
pears

and when you click on “apples”, it takes you to the corresponding “apples” webpage ("\_blank").

Any help would be very appreciated. 🙂

Cheers,  
Marty
