Private astream1 As AsyncSteamsText 'In Process Globals
' In AppStart:
sp1.Open("COM6")
sp1.Initialize("")
sp1.SetParams(921600,8,1,0)
astream1.Initialize(Me, "astream1",sp1.GetInputStream, sp1.GetOutputStream)
'somewhere:
s1 As String
s1="x"&Chr(13)&Chr(10)
astream1.Write(s1)