To answer your question: No, there is no such switch. I guess you could remove the reference to the Microsoft.VisualBasic.dll assembly, but I doubt if VB.NET would even work without it. But if you want, you could give it a try.
However, I never understand people who want to use VB.NET but refuse to use the VB.NET specific functions. After all, they often offer more than the equivalent framework functions (i.e. Trim("") will give you "", "".Trim will give you an exception so you always have to check wheter the string you want to trim is empty). Sometimes an equivalent Framework function does not even exist (such as Right()). This does result in faster development of business applications, which usually is more important in "real-life" applications than "purity" of the code. So why not use this added functionality? As long as you have Option Explicit On and Option Strict On, no harm can be done by unwanted type castings. And in 99 % of all applications, the performance penalty will not be noticed. Funnily, I have never seen anyone complaining about C# specific things, such as "using"... why should it be good to use them, but bad to use VB specific things? Just my 2 cents Urs -----Ursprüngliche Nachricht----- Von: Yogesh Shetty [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 10. Mai 2002 14:30 An: [EMAIL PROTECTED] Betreff: [DOTNET] VB6 Function Compatibility... Hi, 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... 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.. Regards Yogesh Shetty Team COE Financial Technologies (India) Ltd. URL: <http://www.ftindia.com> www.ftindia.com mailto : <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] contact : +91 22 6164145 You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.