> >
> > Have you any examples of poor or even terrible code that has really left you scrambling for a resolution to a weird error?
>
> We all have, don't we:) Consider this on load/init etc of a form base class:
>
>
if not "SOMEPROCFILE" $ set("procedure")
> set procedure to someprocfile additive
> endif
>
> No error makes it a harder to catch problem:)
> Cetin Basoz
Hi Cetin,
Apoligies for dagging up an old thread, but I was just wondering why you find this to be bad?
Would you prefer to just have:
set procedure to someprocfile additive
regardless of whether the procedures are already available or not?
I wouldn't consider either to be "bad", and when it comes down to it, I'd prefer to see:
if not "SOMEPROCFILE" $ set("procedure")
set procedure to someprocfile additive
endif
At least it shows that the programmer is considering that the procedures may or may not be available.
Brian