> > Have you any examples of poor or even terrible code that has really left you scrambling for a resolution to a weird error?
>
> I've dealt with code that used negative variable names. While technically there is no problem with that, it makes the code really hard to understand, especially for newbies
>
>
> IF NOT llNotAllowed
> * do something
> ELSE
> * do something else
> ENDIF
>
> --
> Eric den Doop
>
www.foxite.com - The Home Of The Visual FoxPro Experts
At least they didn't say:
IF !llNotAllowed
* do something
ELSE
* do something else
ENDIF
That's REALLY hard to read! But I will sometimes use the negative case first, if the code for that situation is very short and the ELSE code is much longer.
-BP
www.peisch.com