# Delay within for loop

**URL:** <https://forum.kirupa.com/t/delay-within-for-loop/92387>\
**Category:** Uncategorized\
**Created:** [October 16, 2003, 2:48pm UTC](https://forum.kirupa.com/t/delay-within-for-loop/92387 "2003-10-16T14:48:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkrakatau](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@kkrakatau](https://forum.kirupa.com/u/kkrakatau)\
**Post date:** [October 16, 2003, 2:48pm UTC](https://forum.kirupa.com/t/delay-within-for-loop/92387/1 "2003-10-16T14:48:40Z")

</div>

Now, before I get slated for asking this question, I have searched for the answer in this & other forums, but I still can’t get my head around this.

I need to have a delay built in within a “for” loop, so that it works something like this:

for(x=0;x\<10;x++)  
{  
// code that generates button - I have this working

// delay of 75 miliseconds before continuing the loop - can’t get this to work!!

}
