- Overview
ActiveX Component Reference
- Getting Started
FTSPCControl Class
- FTSPCControl Class description
Methods
- Close Method
- Open Method
- SetSettingsFromString Method
- EnumSerialPorts Method
- GetSerialPort Method
- GetSerialPortDescription Method
- Read Method
- ReadArray Method
- ReadArrayOverlapped Method
- ReadOverlapped Method
- Write Method
- WriteArray Method
- WriteArrayOverlapped Method
- WriteOverlapped Method
- CancelIO Method
- Flush Method
- GetLastError Method
- PurgeQueue Method
- SetBreak Method
Properties
- BaudRate Property
- DataBits Property
- FlowControl Property
- Parity Property
- PortName Property
- StopBits Property
- Cts Property
- Dcd Property
- Dsr Property
- Dtr Property
- Ring Property
- Rts Property
- ReadIntervalTimeout Property
- ReadTotalTimeoutConstant Property
- ReadTotalTimeoutMultiplier Property
- WriteTotalTimeoutConstant Property
- WriteTotalTimeoutMultiplier Property
- EofChar Property
- ErrorChar Property
- EventChar Property
- XoffChar Property
- XonChar Property
- AutoOpen Property
- DiscardNull Property
- InQUsedBytes Property
- IsOpened Property
- RxThreshold Property
FTSPCOverlapped Class
.NET Component Reference
- Getting Started
FTSPCControl Class
- FTSPCControl Class description
Methods
- Close Method
- Open Method
- SetSettingsFromString Method
- EnumSerialPorts Method
- GetSerialPort Method
- GetSerialPortDescription Method
- Read Method
- ReadArray Method
- ReadArrayOverlapped Method
- ReadOverlapped Method
- Write Method
- WriteArray Method
- WriteArrayOverlapped Method
- WriteOverlapped Method
- CancelIO Method
- Flush Method
- PurgeQueue Method
- SetBreak Method
Properties
- BaudRate Property
- DataBits Property
- FlowControl Property
- Parity Property
- PortName Property
- StopBits Property
- Cts Property
- Dcd Property
- Dsr Property
- Dtr Property
- Ring Property
- Rts Property
- ReadIntervalTimeout Property
- ReadTotalTimeoutConstant Property
- ReadTotalTimeoutMultiplier Property
- WriteTotalTimeoutConstant Property
- WriteTotalTimeoutMultiplier Property
- EofChar Property
- ErrorChar Property
- EventChar Property
- XoffChar Property
- XonChar Property
- AutoOpen Property
- DiscardNull Property
- InQUsedBytes Property
- IsOpened Property
- RxThreshold Property
FTSPCOverlapped Class
FTSPCException Class
Borland Component Reference
- Getting Started
FTSPCControl Class
- FTSPCControl Class description
Methods
- Close Method
- Open Method
- SetSettingsFromString Method
- EnumSerialPorts Method
- GetSerialPort Method
- GetSerialPortDescription Method
- Read Method
- ReadArray Method
- ReadArrayOverlapped Method
- ReadOverlapped Method
- Write Method
- WriteArray Method
- WriteArrayOverlapped Method
- WriteOverlapped Method
- CancelIO Method
- Flush Method
- PurgeQueue Method
- SetBreak Method
Properties
- BaudRate Property
- DataBits Property
- FlowControl Property
- Parity Property
- PortName Property
- StopBits Property
- Cts Property
- Dcd Property
- Dsr Property
- Dtr Property
- Ring Property
- Rts Property
- ReadIntervalTimeout Property
- ReadTotalTimeoutConstant Property
- ReadTotalTimeoutMultiplier Property
- WriteTotalTimeoutConstant Property
- WriteTotalTimeoutMultiplier Property
- EofChar Property
- ErrorChar Property
- EventChar Property
- XoffChar Property
- XonChar Property
- AutoOpen Property
- DiscardNull Property
- InQUsedBytes Property
- IsOpened Property
- RxThreshold Property
FTSPCOverlapped Class
FTSPCException Class
Read data into safe array
procedure TForm1.FTSPCControl1Receive(Sender: TObject; Count: Cardinal); var ReadBuffer: array of byte; ReadCount: DWORD; i: integer; begin try SetLength(ReadBuffer, Count); ReadCount := FTSPCControl1.ReadArray(ReadBuffer); if ReadCount > 0 then begin for i := 0 to ReadCount - 1 do begin Memo_Terminal.Text := Memo_Terminal.Text + char(ReadBuffer[i]); end; end; except on e:FTSPCException do begin application.MessageBox(PChar('Error: ' + inttostr(e.ErrorCode) + ' - ' + e.ErrorSource), 'Error!', MB_OK + MB_ICONERROR); end; end; end;