IonicWind Software

Aurora Compiler => GUI => Topic started by: Pip1957 on August 09, 2006, 06:26:06 AM

Title: Loop problem
Post by: Pip1957 on August 09, 2006, 06:26:06 AM
Paul updated to last release and have a problem with the for loop the code below is in the OnInitDialog section

This does not work:

for(nd=100; nd>110; nd++)
{
ShowWindow(SWHIDE,nd);
setfont("Arial",9,600,0,nd);
}


But This does:

nd=100;
do
{
ShowWindow(SWHIDE,nd);
setfont("Arial",9,600,0,nd);
nd++;
}Until nd>110;
Title: Re: Loop problem
Post by: John Syl. on August 09, 2006, 07:01:07 AM
The condition expression nd>110 is not true therfore the loop fails it should be nd < 111.

John
Title: Re: Loop problem
Post by: Pip1957 on August 09, 2006, 07:10:18 AM
Cheers Puddytat could not see the wood for the trees. ::)