REMark out a group of lines

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:

#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.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS