Does VB6 short circuit conditional tests? That is to say, can I be sure a statement like...
If index <= array_size And array(index) > something Then
will never burst the array, whatever the value of index might happen to be?
Does VB6 short circuit conditional tests? That is to say, can I be sure a statement like...
If index <= array_size And array(index) > something Then
will never burst the array, whatever the value of index might happen to be?
No, VB6's And
and Or
don't short-circuit (which is the reason why the short-circuit versions are called AndAlso
and OrElse
in VB.net — backward compatibility).
Select Case is a short circuit method if you can use it for your purpose.