A
Andrew
What's the best way to do this:
Dim bTrue As Boolean
If bTrue = True Then
Dim TheClass As New classA
Else
Dim TheClass As New classB
End If
TheClass.DoSub
The easy way I figured out was, but it doesn't seem as tight as the above
code (and VB.Net doesn't allow the above code):
Dim bTrue As Boolean
If bTrue = True Then
Dim TheClass As New classA
TheStructure.DoSub
Else
Dim TheClass As New classB
TheStructure.DoSub
End If
Dim bTrue As Boolean
If bTrue = True Then
Dim TheClass As New classA
Else
Dim TheClass As New classB
End If
TheClass.DoSub
The easy way I figured out was, but it doesn't seem as tight as the above
code (and VB.Net doesn't allow the above code):
Dim bTrue As Boolean
If bTrue = True Then
Dim TheClass As New classA
TheStructure.DoSub
Else
Dim TheClass As New classB
TheStructure.DoSub
End If