Instead of
If booleanVariable = True Then
Use
If booleanVariable Then
And instead of
If booleanVariable = False Then
Use
If Not booleanVariable Then
The results are the same but the code runs a bit faster.
-----Mensaje original-----
De: Gopalakrishnan [mailto:ntg@s...]
Enviado el: Miércoles, 14 de Marzo de 2001 01:34 p.m.
Para: professional vb
Asunto: [pro_vb] Coding Standards
hi,
I went thro' the coding standards for VB in www.vb-faq.com. I Came
thro' one of the standards which says that
Never compare a boolean for equality with True or False.
Can anybody tell me why?
Thanks,
N.T.GOPALAKRISHNAN