> > Have you any examples of poor or even terrible code that has really left you scrambling for a resolution to a weird error?
>
> i got one!this one drove me nuts. looking on the bright side, at least i knew that reccnt means record count.LOL.
>
>
reccnt= VAL(SUBSTR(fstr,AT(",",fstr,6)+1,AT(",",fstr,7)-AT(",",fstr,6)-1))
> reccnt= reccnt + VAL(SUBSTR(fstr,AT(",",fstr,5)+1,AT(",",fstr,6)-AT(",",fstr,5)-1))
>
>
.ian.pano.>
If at first you don't succeed, Call it version 1.0 Well someone should defend the original coders, right?:)
Except for not having mdot what is wrong with this code? Probably it was written in VFP5 days or earlier and maybe have code checking the types and at least 7 commas oocuring. It looks like a simple parsing code to me.
Cetin Basoz