Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local scoop wish
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00720623
Message ID:
00721069
Vues:
16
It is not a bad practice, I agree. The other bad thing in VFP is that there is nothing that prevent you from doing this:
x = 1
x = 'A'
You couldn't do this in C#.

>There is a very thin line between declaring and assigning a value to a variable.
>
>In VFP
>x = 1 && Declare and assing x to 1 (declared as private)
>IN C#
>int x = 1; // Declare and assing x to 1 (declared as local)
>what is different ? both language can declare and assign on the same statement, is it bad practice ? IMHO it is not, the bad thing is that x is declared private in VFP.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform