Re: question(s) about declaring variables

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ui%23MjkyeFHA.2124@xxxxxxxxxxxxxxxxxxxxxxx
> ...etc. That makes me do a search/replace of all occurances of 2 spaces in
> a row. Too much work! <g> One space is all we need.
>

Might as well add..... I also try to dump any Exit Sub/Function's too....
things like...

'======
If Arg = 0 Then
Exit Sub
End If

More Code here.
End Sub
'======

....will change to....

'======
If Arg <> 0 Then
More Code here
End If
End Sub
'======

....I like there to be only one way out of a procedure. One way in, one way
out. Seems easy enough. No "why isn't this code running" mysteries either.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..


.



Relevant Pages