FUNCTION DoSomething (int Param) >FUNCTION DoSomething (string Param)I can see from the class declaration (or from Intellisense) what types the parameter can be. I don't have to open the code to see it.
>>Function DoSomeThing( vParm ) >> >> DO CASE >> Case Vartype(vParm) == "O" >> *-- Do someting >> Case Vartype(vParm) == "N" >> *-- Do someting else >> *... >> EndCase >> >>EndFunc >>>This pretty much simulate method overloading ! Thank to VFP weak typing.