Below is a sample excerpt of code. I see a pound sign before the IF statement and I'd like a simple explanation as to why it is there.
..And another example where it is used
Any insight will help me out. I'm reverse engineering this class and I'm not sure of the significance of the pound sign. Most of my VB experience is in .NET and I've never seen it.
Regards,
Levi
Code:
#If MTS Then
Implements ObjectControl
Private mObjContext As ObjectContext
Private Sub ObjectControl_Activate()
Set mObjContext = GetObjectContext
End Sub
Private Function ObjectControl_CanBePooled() As Boolean
ObjectControl_CanBePooled = True
End Function
Private Sub ObjectControl_Deactivate()
Set mObjContext = Nothing
End Sub
#End If
..And another example where it is used
Code:
#If DISPLAY Then
MsgBox oConn.Errors.Item(Index).Number & ";" & oConn.Errors.Item(Index).Source & oConn.Errors.Item(Index).Description + ";" & oConn.Errors.Item(Index).NativeError & ";" & oConn.Errors.Item(Index).SQLState
#Else
'MsgBox oConn.Errors.Item(Index).Description
App.LogEvent oConn.Errors.Item(Index).Number & ";" + oConn.Errors.Item(Index).Source & oConn.Errors.Item(Index).Description + ";" & oConn.Errors.Item(Index).NativeError & ";" & oConn.Errors.Item(Index).SQLState
#End If
Any insight will help me out. I'm reverse engineering this class and I'm not sure of the significance of the pound sign. Most of my VB experience is in .NET and I've never seen it.
Regards,
Levi