B4A Library [class] AsyncStreamsText - Useful when working with streams of text

Status
Not open for further replies.
D

Deleted member 103

Guest
Hallo , I changes the Astreams to AST,
If you are already changing the name, then you should also change the event name.
from:
B4X:
Sub AStreams_NewData (Buffer() As Byte)
to
B4X:
Sub AST_NewData (Buffer() As Byte)
 

DonManfred

Expert
Licensed User
Longtime User
If you are already changing the name, then you should also change the event name.
Wrong solution!

AStreamText uses String instead of bytes

B4X:
Sub ast_NewText(Text As String)
   Log("Text: " & Text)
   Log(Text.Length)
End Sub

Sub ast_Terminated
   Log("Connection terminated")
End Sub

Sub Activity_Click
   ast.Write("this is an example..." & Chr(10) & Chr(13))
End Sub
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…