# Re-assigning variable problem

**URL:** <https://forum.kirupa.com/t/re-assigning-variable-problem/62479>\
**Category:** Uncategorized\
**Created:** [August 28, 2004, 4:24am UTC](https://forum.kirupa.com/t/re-assigning-variable-problem/62479 "2004-08-28T04:24:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skinny\_T](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Skinny\_T](https://forum.kirupa.com/u/Skinny_T)\
**Post date:** [August 28, 2004, 4:24am UTC](https://forum.kirupa.com/t/re-assigning-variable-problem/62479/1 "2004-08-28T04:24:54Z")

</div>

Hi guys, I’m workin on a thing for my own personal use and I’ve got a problem. What I have is 5 variables labeled slot1 - 5. What these slots are used for is button positions. What I need is when a window is closed the buttons move up a slot. ie button 2 in slot2 becomes button2 in slot 1. If you’re not sure what I’m talkin about have a look at [this.](http://www.geocities.com/skinny_man21/new.html) Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 28, 2004, 6:56am UTC](https://forum.kirupa.com/t/re-assigning-variable-problem/62479/2 "2004-08-28T06:56:15Z")

</div>

> [@Skinny\_T](#):
>
> Hi guys, I’m workin on a thing for my own personal use and I’ve got a problem. What I have is 5 variables labeled slot1 - 5. What these slots are used for is button positions. What I need is when a window is closed the buttons move up a slot. ie button 2 in slot2 becomes button2 in slot 1. If you’re not sure what I’m talkin about have a look at [this.](http://www.geocities.com/skinny_man21/new.html) Any help is appreciated.

I think you would benefit from an array, have a look at this and see if it is any help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 28, 2004, 7:07am UTC](https://forum.kirupa.com/t/re-assigning-variable-problem/62479/3 "2004-08-28T07:07:31Z")

</div>

thanks, it’s a bit confusing (haven’t dealt with arrays since my vb days) but I’ll try and get it
