void __fastcall TConnectionSR232App:: FormCreate(TObject *Sender)
{       int i;
		Serial = new TConnectSR232();
		Serial->ReturnMethod=ReturnMethod;
		AdjustDevicesNames(Serial->GetAvailableDevicesNames(true,false,NULL));
		AdjustInterface();
		//Receive_Memo->Clear();
		StringGrid1->Cells[0][0]="";
		//StringGrid1->Cells[0][1]= StringGrid1->Cells[0][0]+StringGrid1->Cells[1][0];
		StringGrid1->Cells[1][0]= "Date/Heure";
		StringGrid1->Cells[2][0]= "Lot.Nr";
		StringGrid1->Cells[3][0]= "Utilisateur";
		StringGrid1->Cells[4][0]= "Valeur 1";
		StringGrid1->Cells[5][0]= "Valeur  2";
		StringGrid1->Cells[6][0]= "Valeur 2 - Valeur 1";
		StringGrid1->Cells[7][0]= "Const";
		StringGrid1->Cells[8][0]= "Resultat*Const";
		StringGrid1->Cells[9][0]= "Observation";
		for (i = 1; i < StringGrid1->RowCount; i++) {
		   StringGrid1->Cells[0][i]= IntToStr(i);
		}
}
			
		
 
	
Partager