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

Status
Not open for further replies.

Filippo

Expert
Licensed User
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
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
 

Filippo

Expert
Licensed User
Wrong solution!
What should be wrong here?
I only wrote here that the sub-name should be changed. :mad:
 
Status
Not open for further replies.
Top