Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't clear CAD / DTE classes
Message
From
23/06/2016 02:53:18
 
 
To
22/06/2016 14:22:41
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01637449
Message ID:
01637605
Views:
128
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform