>>3) You are so Javascript influenced, that you terminate many LOCALs with ";", when VFP only use this as continuation line and not as ending line, like Javascript (you are tempting the luck :)
>>
>
>I am not going as far as Thierry in 1 line per local var, but separate the different data types into different lines as well.
>Reading speed plus convinience of initialising each "type" block with a single line
>And SQL is usually taller than wide here ;-))
Hi Thomas:
I've refered to LOCALs like this:
LOCAL var1 ;
, var2 ;
, etc ;
Having all vars in line, grouped or individual 1 by line is not the problem and anyone have it's preferences, but leaving the final ";" open in the last statement COULD BE a real problem, because if you, by mistake, write some code in the inmediate next line, then VFP will interpret that as a continuation on the last ";", generating all kind of "rare" problems that not allways are visible at first, and even can not generate a compilation error.
Fernando D. Bozzo
Madrid / Spain