B4J Question Call sub in other module

David B

Member
Hi ! I've been trying to do this simple task for a while . I have this piece of code in Main

B4X:
Sub ResponderSocket (Enviar As String)
  aStream.Write(Enviar.GetBytes("utf8"))
End Sub

Then I can call this Sub from another Module doing

B4X:
Main.ResponderSocket("mydata")

How do I call another sub that not is in Main? I have tried typing the module name followed by dot but it does not work
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…