petr4ppc Well-Known Member Licensed User Longtime User Dec 13, 2019 #1 Dear friends, please for advice, I am reconstructing visual basic code to B4R and in VB I have sent the string: serialPort1.WriteLine(ComboBox1.Text & "=" & WriteDevice.Text & vbCr) Click to expand... I am doing that right for B4R in this way: B4X: astream.Write(Array As Byte("NAME=MYDEV1",13)) Is it B4R correct, please? Thank you very much Berst regards p4ppc
Dear friends, please for advice, I am reconstructing visual basic code to B4R and in VB I have sent the string: serialPort1.WriteLine(ComboBox1.Text & "=" & WriteDevice.Text & vbCr) Click to expand... I am doing that right for B4R in this way: B4X: astream.Write(Array As Byte("NAME=MYDEV1",13)) Is it B4R correct, please? Thank you very much Berst regards p4ppc
XorAndOr Active Member Licensed User Longtime User Dec 13, 2019 #2 B4X: astream.Write("NAME=MYDEV1".GetBytes) astream.Write(CRLF) Upvote 0
petr4ppc Well-Known Member Licensed User Longtime User Dec 13, 2019 #3 Dear XORandOR, your help is big help for me, thank you very much - solved, Best regards p4ppc Upvote 0