Function DoSomeThing( vParm ) DO CASE Case Vartype(vParm) == "O" *-- Do someting Case Vartype(vParm) == "N" *-- Do someting else *... EndCase EndFuncThis pretty much simulate method overloading ! Thank to VFP weak typing.
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.