Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Coding Standards


Message #1 by "Gopalakrishnan" <ntg@s...> on Wed, 14 Mar 2001 22:04:26 +0530
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


  Return to Index