dataport icon indicating copy to clipboard operation
dataport copied to clipboard

Convert Stop Bits string to Enumerator StopBits

Open eldonfsr opened this issue 2 years ago • 4 comments

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...

eldonfsr avatar Mar 03 '23 02:03 eldonfsr

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: @.***>

serbod avatar Mar 03 '23 21:03 serbod

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...

eldonfsr avatar Mar 06 '23 22:03 eldonfsr

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: @.***>

serbod avatar Mar 07 '23 02:03 serbod

Ok Thanks.... sorry for question...

eldonfsr avatar Mar 07 '23 14:03 eldonfsr