Form1->ComPort1->ClearBuffer(true, true); // Form1->ComPort1->Write(mass,i1); for(int i=0;i<i1;i++) { Form1->ComPort1->Write(&mass[i],1); Sleep(2); }