Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delay inside the loop

Status
Not open for further replies.

coolbass

Programmer
Nov 7, 2002
11
PH
hi there! can u help me in my simple program. i want to display every values in the edit box while updating it. i want to have a pause inside a loop to perform the display

here is my partial code:

m_READY = "Identifying...";
UpdateData(FALSE);
do
{
a = a + float(0.5);
m_S1 = a;
m_S2 = a;
m_S3 = a;
m_S4 = a;
m_S5 = a;
m_S6 = a;
m_S7 = a;
m_S8 = a;
m_S9 = a;
m_S10 = a;
i++;
UpdateData(FALSE);
} while (i<=10);

thanks!!!
 
use the Sleep API:

Sleep(your_nr_of_ms_you_want_to_wait);
Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top