Android Question Syntax of "wait for ftp.sendcommand ..."

vecino

Well-Known Member
Licensed User
Longtime User
Hello, I am currently sending the command:
B4X:
FTPpro.SendCommand ("NOOP", "")
And it is completed in:
B4X:
Sub FTPpro_CommandCompleted (Command As String, Success As Boolean, ReplyCode As Int, ReplyString As String)
I would like to do it with wait for, but I can not find any thread where it is explained.
How should I do it?
Thank you.
 

vecino

Well-Known Member
Licensed User
Longtime User
B4X:
Dim sf As Object = FTPpro.SendCommand ("NOOP", "")     '''   <---  Cannot assign void value.
Wait For (sf) FTPpro_CommandCompleted (Command As String, Success As Boolean, ReplyCode As Int, ReplyString As String)
Hi, I do not know why this error occurs.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I guess it does not return anything, so it will be like this:
B4X:
FTPpro.SendCommand ("NOOP", "")
Wait For FTPpro_CommandCompleted (Command As String, Success As Boolean, ReplyCode As Int, ReplyString As String)
It is right?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Ops!, the v1.62
I installed v1.80 and now it works fine.

Is there no automatic notification when publishing a new version of any library?
Regards.
 
Upvote 0
Top