Hi checked DataPort.Active always return false or null some body check this correct or i make mistake...status never update...
Thanks
DataPort.Close();
Port:=BDSerProj.FieldByName('SerialPort').AsString ;
SBaudRate:=BDSerProj.FieldByName('BaudRate').AsString ;
DataBits:=BDSerProj.FieldByName('DataBits').AsString ;
StopBits:=BDSerProj.FieldByName('StopBits').AsString ;
SParity:=BDSerProj.FieldByName('Parity').AsString ;
FlowControl:=BDSerProj.FieldByName('FlowControl').AsString ;
DpSerial.BaudRate:= StrToInt(SBaudRate);
DpSerial.Port:= Port;
DpSerial.DataBits:=StrtoInt(Databits);
DpSerial.StopBits:=StrtoStopBits(Stopbits);
SetDataPort(DataPort) ;
DataPort:=DPSerial;
DataPort.open();
// actConnectExecute(sender);
sleep(100);
FormMain.Update;
end;
if( Assigned(DataPort) ) then begin
// if( DataPort.Active) then begin always going like false