I'm trying to rearrange my B4A project by moving some of the code into modules. And it's not going well :-(
The latest problem I've run up against is the error message "Code modules do not support Me keyword".
One of the subs that I've moved into a code module runs an HttpJob:
The compiler is objecting to the "Me" in the QSjob.Initialize line. What is the alternative to using Me in this statement?
I've tried searching the forums, but I don't seem to be able to turn up anything useful, other than a few places where it says that code modules do not support the Me keyword. The only reference I can find in Wyken's book is that Me "cannot be used in a code module".
Those statements are not really very helpful without offering an alternative, even if the only answer is simply that I have to move the code using the Me back into the Main module!
The latest problem I've run up against is the error message "Code modules do not support Me keyword".
One of the subs that I've moved into a code module runs an HttpJob:
B4X:
Dim QSjob As HttpJob
QSjob.Tag = "QS.json"
QSjob.Initialize("get_QS", Me)
QSjob.Download(Main.QS_URL & Main.InvitationCode)
The compiler is objecting to the "Me" in the QSjob.Initialize line. What is the alternative to using Me in this statement?
I've tried searching the forums, but I don't seem to be able to turn up anything useful, other than a few places where it says that code modules do not support the Me keyword. The only reference I can find in Wyken's book is that Me "cannot be used in a code module".
Those statements are not really very helpful without offering an alternative, even if the only answer is simply that I have to move the code using the Me back into the Main module!