473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

what is the difference between String and string

Hi,
I am reading about an article of user control at the following site:
http://msdn.microsoft.com/library/de...properties.asp
and i notice that in this article, they declare variant using String and
string, what is the difference? Is this the intention Microsoft want to do?

Thanks very much.
Nov 18 '05 #1
3 1389
'string' is an alias for 'String'. So they are equivalent.

"Green" <so*****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,
I am reading about an article of user control at the following site:
http://msdn.microsoft.com/library/de...properties.asp and i notice that in this article, they declare variant using String and
string, what is the difference? Is this the intention Microsoft want to do?
Thanks very much.

Nov 18 '05 #2
Hi,

The fully qualified name of the .NET Framework class is System.String (see
http://msdn.microsoft.com/library/en...lassTopic.asp).

In C# there is a keyword string
(http://msdn.microsoft.com/library/en...lrfString.asp), that
is simply an alias for System.String.

In VB if you leave Option Strict to be off you can write it in whichever
case you like and it will compile. eg string, String, STRING, sTRING,
sTrInG, STRiNG etc

Hope this helps
Martin
"Green" <so*****@yahoo.com> wrote in message
news:#X**************@TK2MSFTNGP09.phx.gbl...
Hi,
I am reading about an article of user control at the following site:
http://msdn.microsoft.com/library/de...properties.asp and i notice that in this article, they declare variant using String and
string, what is the difference? Is this the intention Microsoft want to do?
Thanks very much.

Nov 18 '05 #3
> In VB if you leave Option Strict to be off you can write it in whichever
case you like and it will compile. eg string, String, STRING, sTRING,
sTrInG, STRiNG etc
Actually VB doesn't care even if you do have Option Strict On, VB is totally
case insensitive. This means your C# classes cannot have two methods that
differ only by case if you want to use them from a VB application. (There is
a CLS rule about this.)

--
Jonathan Allen
"Martin Dechev" <de*******@hotmail.com> wrote in message
news:eg**************@TK2MSFTNGP14.phx.gbl... Hi,

The fully qualified name of the .NET Framework class is System.String (see
http://msdn.microsoft.com/library/en...lassTopic.asp).
In C# there is a keyword string
(http://msdn.microsoft.com/library/en...lrfString.asp), that
is simply an alias for System.String.

In VB if you leave Option Strict to be off you can write it in whichever
case you like and it will compile. eg string, String, STRING, sTRING,
sTrInG, STRiNG etc

Hope this helps
Martin
"Green" <so*****@yahoo.com> wrote in message
news:#X**************@TK2MSFTNGP09.phx.gbl...
Hi,
I am reading about an article of user control at the following site:

http://msdn.microsoft.com/library/de...properties.asp
and i notice that in this article, they declare variant using String and string, what is the difference? Is this the intention Microsoft want to

do?

Thanks very much.


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
12
by: Tee | last post by:
String Builder & String, what's the difference. and when to use which ? Thanks.
6
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. What is the difference between a Field and a Property? Here is the context. In the VS.NET 2002 documentation, in the "String Members" section, we have the...
12
by: Joe Fallon | last post by:
I would like to know the syntax to check that an Object is a String. If it was a number test I might use IsNumeric. But there is no function: IsString (is there?) -- Joe Fallon
24
by: Massimo Soricetti | last post by:
Think for a moment: IF you were Bjarne Stroustrup in 1985 (or whenever he were doing it) writing down C++, and knowing all you know NOW of the C++ language, (pro, cons, features of today...
12
by: CMirandaman | last post by:
Sounds like a stupid question I know. I can tell that they are used to copy strings. But what is the difference between x = y; versus x = String.Copy(y); Or are they essentially the same?
7
by: Bruce One | last post by:
What is the difference between String and string in C#? What can u do with string that you cant do with String, vice versa?
6
by: JonathanOrlev | last post by:
Hello everyone, I have a newbe question: In Access (2003) VBA, what is the difference between a Module and a Class Module in the VBA development environment? If I remember correctly, new...
6
by: =?Utf-8?B?SmVmZg==?= | last post by:
I thought this would already be covered here, but my search turned up nothing. In VS2005, if I use "String" to define a new variable/class, it colors it in the Aqua color as it does other...
41
by: process | last post by:
I have heard some criticism about Python, that it is not fully object- oriented. What is not an object in Python? Why isn't len implemented as a str.len and list.len method instead of a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.