I just created a new console app and tested both
?"Four".Length
and
?Len("Four")
both of which result in 4
, after my project has run.
Do you have a project that will run? The immediate window needs to be evaluated in the context of a running project. If so,
Have you imported Microsoft.VisualBasic
in your project properties "References" tab? If I remove that I get,
'Len' is not declared. It may be inaccesible due to its protection level.
But, the Length
propery of System.String
still works because I'm still importing System
.