Z zxxdaro Member Licensed User Longtime User Apr 15, 2012 #1 I am learning as I go along so it is often a matter of trial and error. I have a problem a WebView. It is coming up as not having bein defined but I think I have and I have used similar code elsewhere and it works OK. A cutdown program which displays the problem is attached. It is a very small program which should be easy to work with. It is only a few lines and one small designed screen and a small file. I'd like someone to tell me what is wrong as I have looked and looked and looked and I cannot see what is wrong. Oh yes there is a pop up message illustrate that the variable does contain what it should too. Attachments webviewtest.zip webviewtest.zip 6.9 KB · Views: 366
I am learning as I go along so it is often a matter of trial and error. I have a problem a WebView. It is coming up as not having bein defined but I think I have and I have used similar code elsewhere and it works OK. A cutdown program which displays the problem is attached. It is a very small program which should be easy to work with. It is only a few lines and one small designed screen and a small file. I'd like someone to tell me what is wrong as I have looked and looked and looked and I cannot see what is wrong. Oh yes there is a pop up message illustrate that the variable does contain what it should too.
klaus Expert Licensed User Longtime User Apr 15, 2012 #2 Move this line Code: Dim WebView1 As WebView from Sub Activity_Create to Sub Globals. You should Dim all Views in the layout you want to acces in Sub Globals !!! Best regards. Upvote 0
Move this line Code: Dim WebView1 As WebView from Sub Activity_Create to Sub Globals. You should Dim all Views in the layout you want to acces in Sub Globals !!! Best regards.
NJDude Expert Licensed User Longtime User Apr 15, 2012 #3 You have to move the line below to Sub Globals Code: Dim WebView1 As WebView If you are using the designer to create your layouts you should click on Tools -> Create Members. Upvote 0
You have to move the line below to Sub Globals Code: Dim WebView1 As WebView If you are using the designer to create your layouts you should click on Tools -> Create Members.
Z zxxdaro Member Licensed User Longtime User Apr 15, 2012 #4 Thank you very much. I know it had to be something simple but i just couldn't see it. Upvote 0