Convert Stop Bits string to Enumerator StopBits
Hello i save config of serial port on xml file to load when app start, I save the values as string for stopbits as stb1 or stb15 but when i try to assign to port send me error
like this FormMain.DPSerial.StopBits:= CBStopBits.Text;
how i can convert or assign value saved on file xml
Thanks hope can help me...
Use Open('COM1,115200,8,N,1') where 1 for 1 stop bits You can compose initialization string from parameters
On Fri, Mar 3, 2023, 05:27 eldonfsr @.***> wrote:
Hello i save config of serial port on xml file to load when app start, I save the values as string for stopbits as stb1 or stb15 but when i try to assign to port send me error
like this FormMain.DPSerial.StopBits:= CBStopBits.Text;
how i can convert or assign value saved on file xml
Thanks hope can help me...
— Reply to this email directly, view it on GitHub https://github.com/serbod/dataport/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXM37NDALY7ZV7K2PLK3ITW2FJHNANCNFSM6AAAAAAVOB3BRM . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks let me do changes,, I have another question on DataSerialPort.pas there a function SendString but when try to call that DataPort.SendString is not showing there how i can use that function to send string on terminal push send character typed on terminal or memo...
Please, look for terminal emulator example in "demo" folder
On Tue, Mar 7, 2023, 01:07 eldonfsr @.***> wrote:
Thanks let me do changes,, I have another question on DataSerialPort.pas there a function SendString but when try to call that DataPort.SendString is not showing there how i can use that function to send string on terminal push send character typed on terminal or memo...
— Reply to this email directly, view it on GitHub https://github.com/serbod/dataport/issues/12#issuecomment-1457082002, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXM37LC4PDW2VUYKGDKHMDW2ZN3JANCNFSM6AAAAAAVOB3BRM . You are receiving this because you commented.Message ID: @.***>
Ok Thanks.... sorry for question...