Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 625481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:18:51+00:00 2026-05-13T19:18:51+00:00

I’m not trying to start an argument here, but for whatever reason, it’s typically

  • 0

I’m not trying to start an argument here, but for whatever reason, it’s typically stated that Visual Basic is case insensitive and C languages aren’t (and somehow that is a good thing).

But here’s my question: Where exactly is Visual Basic case insensitive? When I type…

Dim ss As String
Dim SS As String

…into the Visual Studio 2008 or Visual Studio 2010 IDE, the second one has a warning of “Local variable SS is already declared in the current block“. In the VBA VBE, it doesn’t immediately kick an error, but rather just auto-corrects the case.

Am I missing something here with this argument that Visual Basic is not case sensitive? (Also, if you know or care to answer, why would that be a bad thing?)

Why am I even asking this question?

I’ve used Visual Basic in many of its
dialects for years now, sometimes as
a hobbyist, sometimes for small
business-related programs in a
workgroup. As of the last six months,
I’ve been working on a big project,
much bigger than I anticipated. Much
of the sample source code out there
is in C#. I don’t have any burning
desire to learn C#, but if there are
things I’m missing out on that C#
offers that Visual Basic doesn’t (an opposite
would be VB.NET offers XML Literals), then I’d like to know
more about that feature. So in this
case, it’s often argued that C
languages are case sensitive and
that’s good and Visual Basic is case
insensitive and that is bad. I’d
like to know…

  1. How exactly is Visual Basic
    case insensitive since every
    single example in the code editor
    becomes case sensitive (meaning
    the case gets corrected) whether I want
    it or not.
  2. Is this compelling enough for me to
    consider moving to C# if VB.NET case
    is somehow limiting what I could do
    with code?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:18:51+00:00Added an answer on May 13, 2026 at 7:18 pm

    The difference between VBA and VB.NET is just because VB.NET compiles continuously in the background. You’ll get an error when you compile the VBA.

    Like Jonathan says, when programming you can think of VB.NET as case-insensitive apart from string-comparisons, XML, and a few other situations…

    I think you’re interested in what’s under the hood. Well, the .NET Common Language Runtime is case-sensitive, and VB.NET code relies on the runtime, so you can see it must be case-sensitive at runtime, e.g. when it’s looking up variables and methods.

    The VB.NET compiler and editor let you ignore that – because they correct the case in your code.

    If you play around with dynamic features or late-binding (Option Strict Off) you can prove that the underlying run-time is case-sensitive. Another way to see that is to realise that case-sensitive languages like C# use the same runtime, so the runtime obviously supports case-sensitivity.

    EDIT If you want to take the IDE out of the equation, you can always compile from the command-line. Edit your code in Notepad so it has ss and SS and see what the compiler does.

    EDIT Quote from Jeffrey Richter in the .NET Framework Design Guidelines page 45.

    To be clear, the CLR is actually
    case-sensitive. Some programming
    languages, like Visual Basic, are case
    insensitive. When the Visual Basic compiler is
    trying to resolve a method call to a
    type defined in a case-sensitive
    language like C#, the compiler (not
    the CLR) figures out the actual case
    of the method’s name and embeds it in
    metadata. The CLR knows nothing about
    this. Now if you are using reflection
    to bind to a method, the reflection
    APIs do offer the ability to do
    case-insensitive lookups. This is the
    extent to which the CLR offers
    case-insensitivity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Basically, what I'm trying to create is a page of div tags, each has
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
For some reason, after submitting a string like this Jack’s Spindle from a text
I want to count how many characters a certain string has in PHP, but
I am trying to loop through a bunch of documents I have to put
I want use html5's new tag to play a wav file (currently only supported
I have just tried to save a simple *.rtf file with some websites and
I'm looking for suggestions for debugging... If you view this site in Firefox or
I am currently running into a problem where an element is coming back from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.