Results 1 to 13 of 13
  1. #1
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored

    [TuT]How to use _ in VB

    Okay so this time guys, this is written completely by me!

    So actually the _ code in VB is very simple and useful. You use it when a particular line of code gets very long! I used this in TopBlast's Hack Injector when i was helping him with it!

    Okay so say we had a very long string of code like this:
    [php]MsgBox("If your mom had a life then we could all live safely but"[/php]

    See the above↑? That might not get that long in VB but say it did. To see your code easier and not be confused with the lines all over the place, you use _.
    So again, the above example.

    [php]MsgBox("If your mom had a life then we could all live safely" _
    & " but unfortunately she doesn't.")[/php]

    That code allows us to start a new line without getting all sorts of errors.
    Thanks for reading! and press the Thanks button

  2. The Following 2 Users Say Thank You to Invidus For This Useful Post:

    jasonbanh (10-26-2010),Withoutwings (02-04-2011)

  3. #2
    Mr. Lex's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    9
    Nice for anyone who doesn't know that. :P

    You can also do the reverse:

    Code someone posted on a tutorial:
    Code:
    Private Blah, blah blah, _ 
    blah blah, _
    blah blah, _ 
    blah
    You can just as easily erase the underscores and put it all on the same line.
    Code:
    Private Blah, blah blah, blah blah, blah blah, blah

  4. #3
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,971
    My Mood
    Happy
    Simple.
    Thanks for sharing.
    -Rest in peace leechers-

    Your PM box is 100% full.

  5. #4
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Quote Originally Posted by Mr. Lex View Post
    Nice for anyone who doesn't know that. :P

    You can also do the reverse:

    Code someone posted on a tutorial:
    Code:
    Private Blah, blah blah, _ 
    blah blah, _
    blah blah, _ 
    blah
    You can just as easily erase the underscores and put it all on the same line.
    Code:
    Private Blah, blah blah, blah blah, blah blah, blah
    No but this is used for LONG CODES. Thats why people use it, to shorten the amount of code on one line.

  6. #5
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Thanks for sharing.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  7. #6
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed
    ty alot .

  8. #7
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    thats cool, i knew 1/2 this xD


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



  9. #8
    Mr. Lex's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    9
    Quote Originally Posted by ilikewaterha View Post


    No but this is used for LONG CODES. Thats why people use it, to shorten the amount of code on one line.

    You established that in your first post. :P

    All I was saying is that it can be undone.

  10. #9
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Quote Originally Posted by Mr. Lex View Post
    You established that in your first post. :P

    All I was saying is that it can be undone.
    Yes of course. Sorry i just assumed you didn't get my point.

  11. #10
    Houston's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    The Netherlands
    Posts
    1,941
    Reputation
    175
    Thanks
    2,470
    My Mood
    Blah
    Great Beginning Tutorial,

  12. #11
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Tis Tisn't it

  13. #12
    [G]host's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    85
    Reputation
    10
    Thanks
    9
    Thanks water, Nice tutorial, Detailed and has Code tags

  14. #13
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Lol Yesh =D. But 1 thing.. its PHP tags

  15. The Following User Says Thank You to Invidus For This Useful Post:

    NextGen1 (04-02-2010)

Similar Threads

  1. Replies: 129
    Last Post: 09-27-2009, 02:21 PM
  2. [TUT] How to use kssn GENERATOR
    By ktalin91 in forum WarRock Korea Hacks
    Replies: 13
    Last Post: 05-10-2009, 07:17 PM
  3. Replies: 34
    Last Post: 03-16-2009, 09:16 AM
  4. (in-depth Video tut) how to use chams/wallhack with bypass
    By hiiway in forum Combat Arms Hacks & Cheats
    Replies: 23
    Last Post: 08-30-2008, 12:32 AM
  5. [TUT] How to use these forums? wip
    By smartie in forum General
    Replies: 43
    Last Post: 08-06-2007, 10:18 AM