Hi Rich,
This kind of instructions are even when they are a million times in a loop
almost never interesting about efficiency, keep in mind that one show or add
of a visible control can cost you billions more time.
When there was a "better" because of efficiency there would have been not
that much posibilities. So look at good programming where reading for others
is very important before you start optimizing in this part of your program.
I do not like to read statements with str1.Equals("xyz"). That does me think
on languages which no sufficient logical operators and where that has to be
done with methods.
However just a thought,
Cor
Just checking which is more efficient/better/or correct
Do While something
str1 = dr(i).ToString
If Not str1.Equals("xyz") Then
...
or
If str1 <> "xyz" Then
...
or does it make any difference? or any other syntax?
TIA,
Rich