|
-
June 9th, 1999, 08:38 AM
#1
do-while loop & UpdateData(FALSE)
Dear all,
I have a button "Go" and an edit box with a member variable
associated m_var (type double).
When I pressed the button, the method associated "OnButtonGo" run
a do-while loop like this:
ccode
void CMyCodeDlg::OnButtonGo()
{
double err_toll = 0.0001;
do
{
.... //other math code
m_var = CalculateError();
UpdateData(FALSE);
} while (m_var < err_toll);
}
/ccode
the value of variable m_var change during the loop and I would like to see
the changes for every iteration, but on video is printed only the value
related to the last iteration. Why?
I hope that the question is clear. Sorry, for my english!
Thank, Giuseppe.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|