Hi everyone,
can someone help me to add a carrage return to the end of a string
i tried
if serial.PortOpen = true then TextBox1.Text = StrToUpper (TextBox1.Text & serial.InputString & Chr(13))
but the device i am sending to doe not see the chr 13
please help, i am new to basic4pc
The carriage return on the textbox control is actually Chr(13) & Chr(10) (or the other way around).
You should use the CRLF contant instead:
if serial.PortOpen = true then TextBox1.Text = StrToUpper (TextBox1.Text & serial.InputString & CRLF)
BTW, did you set TextBox1.MultiLine = True ?