G
Guest
I have a while loop which seems to run twice, I call one routine from another
once the first loop is completed it returns to the calling routine (the line
above) and runs again
Calling routine()
{
ComboBox.FindStringExact(Textbox.text); // routine to be called runs from
the
//next line
then returns to this line and
//re-runs
RoutineToBeCalled again
RoutineToBeCalled()
}
RoutineToBeCalled()
{
int=0;
while(i<6)
{
do work
i++;
}
}
Not easy to explain but the order is..
Combo.Findexacttext(etc)
RoutineToBeCalled()
Runs loop
Returns to Combo.Findexacttext(etc)
RoutineToBeCalled()
Re- Runs
Finishes
once the first loop is completed it returns to the calling routine (the line
above) and runs again
Calling routine()
{
ComboBox.FindStringExact(Textbox.text); // routine to be called runs from
the
//next line
then returns to this line and
//re-runs
RoutineToBeCalled again
RoutineToBeCalled()
}
RoutineToBeCalled()
{
int=0;
while(i<6)
{
do work
i++;
}
}
Not easy to explain but the order is..
Combo.Findexacttext(etc)
RoutineToBeCalled()
Runs loop
Returns to Combo.Findexacttext(etc)
RoutineToBeCalled()
Re- Runs
Finishes