If level > 5 Then
CallSub(Main, "Button2_Click")
End If
End Sub
Sub Button2_Click
Dim BeginPos As Int = WebView1.Height+WebView1.Top-20dip
Dim EndPos As Int = WebView1.Top+20dip
si.SendSwipe(Activity.Width/2,BeginPos,Activity.Width/2,EndPos,10)
End Sub
I need to call Button2_click event if Level > 5. How can I achieve this? I get error that this Main doesn't have any value assigned. Please help
Gregor
Nevermind, fixed the error; just needed to put Main in quotes at CallSub("Main","Button2_Click")