Re: Simplify searching

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Georg Hodosi (Georg_Hodosi_at_hotmail.com)
Date: 01/29/05


Date: Sat, 29 Jan 2005 15:16:28 +0100

This is an excellent ideea!

Thank you Randy.

Regards
Georg

"Randy Birch" <rgb_removethis@mvps.org> skrev i meddelandet
news:%23mR5J9ZBFHA.4072@TK2MSFTNGP10.phx.gbl...
>I guess one way that may simplify the If statements would be to perform
>your
> conditional testing prior to the If, and use the result of the variable to
> direct the process. Along the lines of:
>
> dim ABC
> dim ABnotC
>
> ABC = a and b and c
> ABnotC = a and b and (not C)
> etc ..
>
> If ABC then
> ...
>
> If ABnotC then
> ....
>
> Whether this is really any simpler is an individual preference.
>
> --
>
>
> Randy Birch
> MS MVP Visual Basic
> http://vbnet.mvps.org/
>
>
> "Botkyrka; a part of Europe" <georg_hodosi@hotmail.com> wrote in message
> news:d488dd18.0501271329.7c6216e2@posting.google.com...
> : Hi,
> :
> : I have a structure with a lot of tests like If (A and B and C and
> : D).......then do something. The structure is deep and there are many
> : branches.
> :
> : Is there a more visible method to do this?
> :
> : I tried with definening procedures for main branches but that did
> : definitely not create visibility.
> :
> : Thanks for any ideas
> :
> : Regards
> : Georg
>



Relevant Pages