Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't clear CAD / DTE classes
Message
De
23/06/2016 02:53:18
 
 
À
22/06/2016 14:22:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01637449
Message ID:
01637605
Vues:
126
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform