• 0

Comments in VB 6


Question

9 answers to this question

Recommended Posts

  • 0

You can comment multiple lines using the Line Continuation charactor (a space and an underscore chacactor)

'This is an example _

of a multiline comment

Link to comment
Share on other sites

  • 0

i dunno, i've seen it used in code..... i dont think it works with comments tho :(

i just go

'''''''''''''''''''''

'''YADDA''''

''''''''''''''''''''' or something

Link to comment
Share on other sites

  • 0

No, you can't use /* */ for Visual Basic.

But you don't have to type the beginning ' for each line yourself.

Just use the combination keys:

to comment

CTRL + K, CTRL + C

to uncomment

CTRL + K, CTRL + U

Usually i just use CTRL + K to comment and uncomment it. If it is commented, it will auto uncomment and vice versa.

Link to comment
Share on other sites

  • 0

Right click on the toolbar at the top of the VB6 IDE (the one which contains all the save, open icons), then select Customize. Then, under the Toolbars tab, you'll see a checkbox "Edit". Check it, then OK out of the dialog. You'll notice two buttons on there; "Comment" and "Uncomment". Dock the toolbar anywhere you want and you're good to go. ;)

Hope that helps,

bwx

EDIT: dreamthief beat me to it :p

Link to comment
Share on other sites

  • 0
James is correct about multiline commenting with the line continuation character.

Thanks, I've been using VB for 13 years, I'd HOPE that in that time I've learned something... (but you never know :huh: )

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.