Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

REMark out a group of lines

Total Hit ( 4407)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


VB5 and VB6 environments include a pair hidden commands that let you remark and unremark a group of statements. These commands are hidden in the sense that they can be found on the secondary Edit toolbar that isn't displayed by default. To make these commands available, right-click anywhere on the main toolbar and select "Edit".

However, you should be aware that there is another method that lets you quickly exclude a group of statements from the execution flow. The trick is simple: just put a #If 0 Then ... #End If directive around the statement block, as in:

Click here to copy the following block
#If 0 Then
  ' ....
  ' this is the block of statements
  ' that you want to comment out
  ' ....
#End If

This second method works also under VB4 and has the added advantage that you can "un-comment" the block of statements by simply changing the "0" into any non-zero value. The only limitation is that the statements in the block must be syntactically correct, otherwise the program won't compile.



Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.