> VB.NET still supports some of the VB6 functions due to this > there are some lazy programmers who are still using the VB6 > function in VB.NET eg: Mid, Left, Right... when there is > already equivalent function available in .NET > > are there any VB compiler level switch / or any other > solution which will allow only pure .NET code thererby > restricting the developer from entering any VB 6.0 > compatible function...
Remove the VisualBasic namespace from your references > Alternative solution could be developing an IDE Add-in / > Macro which will walk thru the code and check for the > existence of the above function... Has anybody tried this out.. After doing the above, look at your TODO list for the compiler errors :-) Merak You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.