MSComm1 - & gt; CommPort=ComboBox1 - & gt; ItemIndex + 1;
Botl=ComboBox2 - & gt; The Text;
MSComm1 - & gt; Settings=botl + ", n, 8, 1 ";
MSComm1 - & gt; PortOpen=true;
For the - & gt; Caption="Close";
Run after the first row is always appear this kind of error: properties may only be assigned using a simple eg. "prop=value"