Original Post
In C++, you can do stuff like this:
#define Something(X) ( X++; )
in order to shorten what you have to type each time...
I was wondering if, hidden in Visual Basic (6) was the same
kind of functionality? It does support some pre-compiling
logic
[edited by - Manip on March 24, 2004 7:01:23 PM]
#Const thing = 10
#If thing = 10 Then
Sub thingie()
MsgBox "Thing IS = 10!"
End Sub
#Else
Sub thingie()
MsgBox "Thing IS NOT = 10..."
End Sub
#End If
But I have not been able to find a way to do what C++ does.
The above information was not easy to get hold of, so I
maintain hope that a method does exist but is very obscure.
Note: I would be grateful if nobody post their opinions about
VB in relation to C++, C# or any other lang god knows we
have enough flame wars without starting another one. Thanks.