VB short-circuiting logical operators: AndAlso, OrElse
C# short-circuiting logical operators: &&, ||
VB non-short-circuiting logical operators: And, Or
C# non-short-circuiting logical operators: &, |
VB bitwise operators: And, Or
C# bitwise operators: &, |
Note that both VB and C# have non-short-circuiting logical operators. Also
note that in both VB and C# some operators are overloaded to be both bitwise
and non-short-circuiting logical operators.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: VB to Python converter
"ma*********@hotmail.com" wrote:
To my surprise Visual Studio 8 - VB evaluates C_B in
if C_A And C_B Then
And Hence if C_B is an expression that can only be validated if C_A is
true my code crashes. For example
If p_EdType <"" And CLng(p_EdType) 0 Then .....
There is no Conditional-And operator in Visual Basic?
I am presently working in VS 8 / .NET 2005
Marc Wentink