VBHuguenot
Member
- Joined
- Aug 8, 2007
- Messages
- 12
- Programming Experience
- 1-3
I have been developing asp.net apps for a long time. I am studyging now for a vb.net windows app position and while I have been reviewing code, I came across this in a wrox book and it didn't state why they all of a sudden started all lines of code with a number sign(#) i.e.....
Why is "IF, Else, Then" start with a # sign? as suppose just writing the code without a # sign. It also has more examples such as...
...........
What is the use of the # signs?
I know its something silly that I am missing. Thanks in advanced.
VB.NET:
#If True Then
dim x as string
#Else
dim x as integer
#End if
x = 10
Why is "IF, Else, Then" start with a # sign? as suppose just writing the code without a # sign. It also has more examples such as...
VB.NET:
#Const UserType = "Clerk"
#If UserType = "Clerk" then
What is the use of the # signs?
I know its something silly that I am missing. Thanks in advanced.