x = 1 x = 'A'You couldn't do this in C#.
>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.