kulrom
Well-known member
Hi, All I want to say is that you just have to actually remove the reference to the Microsoft.VisualBasic assembly from a VB.NET project.
I'm telling this becuase I still find way too many developers writing VB6 code in .NET (or they are using the overdated code found through internet without consider its quality).
I know old habits are hard to break, but come on people, let’s do things the .NET way. In particular, I’m referring to all the VB6 methods that have equivalent .NET methods, such as UCase, LCase, Left, Mid, Right, UBound, Len, LTrim, RTrim, CStr, CInt, etc. – the list goes on and on.
For instance, consider these VB 6 Commands and their equivalents:
Len = .Length
Mid = .SubString
Replace = .Replace
InStr = .IndexOf
UCase = .ToUpper
LCase = .ToLower
Split = .Split
Join = .Join
Cheers
I'm telling this becuase I still find way too many developers writing VB6 code in .NET (or they are using the overdated code found through internet without consider its quality).
I know old habits are hard to break, but come on people, let’s do things the .NET way. In particular, I’m referring to all the VB6 methods that have equivalent .NET methods, such as UCase, LCase, Left, Mid, Right, UBound, Len, LTrim, RTrim, CStr, CInt, etc. – the list goes on and on.
For instance, consider these VB 6 Commands and their equivalents:
Len = .Length
Mid = .SubString
Replace = .Replace
InStr = .IndexOf
UCase = .ToUpper
LCase = .ToLower
Split = .Split
Join = .Join
Cheers