#Const DEBUG_LEVEL : Macro « Language Basics « VB.Net






#Const DEBUG_LEVEL

#Const DEBUG_LEVEL
Imports System

Public Class MainClass
    #Const DEBUG_LEVEL = 2
    
    Shared Sub Main()

        #If DEBUG_LEVEL >= 1 Then
           Console.WriteLine("DEBUG_LEVEL >= 1")
        #End If
        
        ' Check for a 7-digit phone number.
        #If DEBUG_LEVEL >= 2 Then
           Console.WriteLine("DEBUG_LEVEL >= 2")
        #End If
        
    End Sub
End Class


           
       








Related examples in the same category

1.Macro in VB.NetMacro in VB.Net