Yes Cor, we are talking about different things, that has been my point here
all along with you. You are talking about how strings can be passed to an
object and how that object requires (or doesn't require) the string to be
passed case-sensitively. I get that, we get that. But that has not been
what I have been talking about and I've repeated that fact over and over
again.
Every one of your posts in this thread are true and correct, except the
first one, which you've been debating incorrectly ever since you made it.
I have been and still am, simply pointing out that the ADO.NET classes (or
any class) may require (or not) a string to be passed in a certain way, but
that has nothing to do with how VB.NET works with strings and since this
whole branch of the thread started with "it's not case sensitive (VB.NET)",
it makes no sense to me why you keep coming back with the same example that
has nothing to do with this stattement.
You've also made references to ASP.NET not being case-sensitive, but that
statement make no sense in any conversation since ASP.NET is an
architecture, not an object, nor a language. I think you mean to say that
in ASP.NET, there are certain types that you don't use in a WinForms
application, such as the System.Web.UI.WebControls.DataGrid and the
System.Windows.Forms.DataGrid and since these are two different types, they
handle case sensitivity differently. This again, boils down to the type
differences, not ASP.NET.
It's really very simple VB.NET is not a type, it's a language. VB.NET has
its rules about how strings are handled and any given type can have its own
rules that may differ, but to say that VB.NET strings are not case-sensitve
*sometimes* and then to show an example of a string being used on a type, is
an incorrect statement to make.
You've shown code that uses strings on types, but you haven't addressed
strings used by the language. I originally showed this code in my first
example:
Dim A As String = "Scott"
Bim B As String = "scott"
If A = B Then
MessageBox(A & "= " & B)
Else
MessageBox(A & " <> " & B)
End If
You will find that the code in the Else always runs.
Your response was:
"Your message should be true, however, it is not always,"
but, that is incorrect to say, the else portion will always run. You then
went on to say:
"it is strange enough
that in AspNet the string literals from ADONET can be mixed uper and lower
case. (I thought I had seen this in version 1.1)."
Which has nothing to do with VB.NET, it has to do with types.
You've made your point very clearly, you've just been labelling it
incorrectly and that's all I've been trying to point out to you.
Right comments, wrong conversation.