I keep getting error messages.

Page 1 of 1

9 Replies - 475 Views - Last Post: 20 January 2013 - 03:00 PM Rate Topic: -----

#1 singh101  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 25
  • Joined: 17-January 13

I keep getting error messages.

Posted 19 January 2013 - 08:16 AM

 Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        class="yt-subscription-button subscription-button-with-recommended-channels yt-uix-button yt-uix-button-subscribe-branded" data-subscription-feature="channels3"
        Next
    End Sub
    End Class




Here are the error messages:
1.Class statement must end with a matching end class.
2.End sub must be preceded by a matching sub.
3.statement cannot appear within a method body. End of method assumed.
4.Syntax error.

This post has been edited by Dormilich: 20 January 2013 - 03:29 AM


Is This A Good Question/Topic? 0
  • +

Replies To: I keep getting error messages.

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9059
  • View blog
  • Posts: 34,020
  • Joined: 12-June 08

Re: I keep getting error messages.

Posted 19 January 2013 - 09:40 AM

Well yeah.. class is a reserved word so it expects something to be done with it.

If you are janking code from someplace like this then look at where that is being used.. in a div tag.. and a class in a div tag is very very much different (as in CSS class) from using it as a variable.
Was This Post Helpful? 0
  • +
  • -

#3 singh101  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 25
  • Joined: 17-January 13

Re: I keep getting error messages.

Posted 19 January 2013 - 01:57 PM

So what should I do with this and I got this code from a video I watched to build this bot.
Was This Post Helpful? 0
  • +
  • -

#4 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3515
  • View blog
  • Posts: 10,146
  • Joined: 08-June 10

Re: I keep getting error messages.

Posted 20 January 2013 - 03:31 AM

well, I can say as much that this is definitely *not* Java​Script. Id rather guess C# or VBScript.
Was This Post Helpful? 0
  • +
  • -

#5 singh101  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 25
  • Joined: 17-January 13

Re: I keep getting error messages.

Posted 20 January 2013 - 01:32 PM

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
       Button3_Click (Class="yt-subscription-button subscription-button-with-recommended-channels yt-uix-button yt-uix-button-subscribe-branded" data-subscription-feature="channels3")
    End Sub



Expression expected.
This is for a button on the bot. It has to click something and then repeat.
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9059
  • View blog
  • Posts: 34,020
  • Joined: 12-June 08

Re: I keep getting error messages.

Posted 20 January 2013 - 02:09 PM

Again.. 'class' in this instance is for CSS.. as in a general style class. I don't think you are using this appropriately.
Was This Post Helpful? 0
  • +
  • -

#7 singh101  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 25
  • Joined: 17-January 13

Re: I keep getting error messages.

Posted 20 January 2013 - 02:22 PM

<a href="javascript:void(0);" onclick="likepage('112581','ImMrClassy');" class="followbutton">Subscribe</a>


Here is what I found when I went on the website. I am trying to make this bot for this website.
Was This Post Helpful? 0
  • +
  • -

#8 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9059
  • View blog
  • Posts: 34,020
  • Joined: 12-June 08

Re: I keep getting error messages.

Posted 20 January 2013 - 02:31 PM

What website, and to what end?
Was This Post Helpful? 0
  • +
  • -

#9 singh101  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 25
  • Joined: 17-January 13

Re: I keep getting error messages.

Posted 20 January 2013 - 02:45 PM

The website is youlikehits.com
Was This Post Helpful? 0
  • +
  • -

#10 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10447
  • View blog
  • Posts: 38,690
  • Joined: 27-December 08

Re: I keep getting error messages.

Posted 20 January 2013 - 03:00 PM

Gaming Youtube's system is definitely against their TOS. As such, we do not support this here. Please do not persist in asking for help. You can PM me with any questions regarding my closing of this thread..
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1