Android Question Error with Msgbox2Async

Ronald Berardinis

Member
Licensed User
why is this failing with syntax error.
I copy/paste and this is the result.
Must be resumablesub ?
I just want to have a pop up and get a response back.
In VB.net would use the
InputBox(message, title, defaultValue)

upload_2019-1-15_17-25-7.png
 

walterf25

Expert
Licensed User
Longtime User
why is this failing with syntax error.
I copy/paste and this is the result.
Must be resumablesub ?
I just want to have a pop up and get a response back.
In VB.net would use the
InputBox(message, title, defaultValue)

View attachment 76368
You need to change
B4X:
Sub msgbx(txt As String, title As String) As Boolean
to
B4X:
Sub msgbx(txt As String, title As String) As ResumableSub

See this link here about ResumableSubs that return a value

Walter
 
Upvote 0
Top