K ktlua Member Licensed User Nov 13, 2016 #1 I try to re-build the sample program HttpUtils2Service.bas. My steps are: 1. I create a new program and call it HttpUtils 2. I copy HttpJob.bas and HttpUtils2Service.bas to the root directory of my project HttpUtils 3. I add HttpJob.bas and HttpUtils2Service.bas with Project>Add Existing Module. 4. I copy the codes from the sample program to my new program under Main 5. I add all the necessary lib like okHttp, OKHttpUtils2, JavaObject, StringUtils. 6. I compile. The error is Error description: Array expected. job1.download("https://www.google.com") Word This is very strange to me. Compiling the original program, I have no problem at all. Why I should have this problem when I try to re-build and compile it. Am I making some mistakes some where? Kindly help.
I try to re-build the sample program HttpUtils2Service.bas. My steps are: 1. I create a new program and call it HttpUtils 2. I copy HttpJob.bas and HttpUtils2Service.bas to the root directory of my project HttpUtils 3. I add HttpJob.bas and HttpUtils2Service.bas with Project>Add Existing Module. 4. I copy the codes from the sample program to my new program under Main 5. I add all the necessary lib like okHttp, OKHttpUtils2, JavaObject, StringUtils. 6. I compile. The error is Error description: Array expected. job1.download("https://www.google.com") Word This is very strange to me. Compiling the original program, I have no problem at all. Why I should have this problem when I try to re-build and compile it. Am I making some mistakes some where? Kindly help.
KMatle Expert Licensed User Longtime User Nov 13, 2016 #2 See you other post (just include the two libs, not the modules). It is always helpful if you copy the complete log/error message using code-tags. Upvote 0
See you other post (just include the two libs, not the modules). It is always helpful if you copy the complete log/error message using code-tags.
K ktlua Member Licensed User Nov 14, 2016 #3 KMatle said: See you other post (just include the two libs, not the modules). It is always helpful if you copy the complete log/error message using code-tags. Click to expand... The screen shot is attached. Attachments ErrorMessage.zip ErrorMessage.zip 395.3 KB · Views: 311 Upvote 0
KMatle said: See you other post (just include the two libs, not the modules). It is always helpful if you copy the complete log/error message using code-tags. Click to expand... The screen shot is attached.
KMatle Expert Licensed User Longtime User Nov 14, 2016 #4 Remove the Http Module, include the libs (okHttpUtils and okHttp) and try again. Upvote 0