Subj : Terrible trouble To : borland.public.cpp.borlandcpp From : "b" Date : Mon Jul 07 2003 02:08 pm in this case: for(int r =0; r<=EditH->GetTextLen() - 1; ++r) // ++r { this is the first loop... now r is 0 or 1? } while in this case: for(int r =0; r<=EditH->GetTextLen() - 1; r++) // r++ { this is the first loop... now r is 1? } .