473,387 Members | 1,512 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,387 software developers and data experts.

what does this mean? "Dim [step] as String"

Hi,

in some code I have there is a variable declared as
Dim [step] as String

what is the [] for in this case?

I thought it was an array at first but
as far as I can tell the variable is just a string

there is no compile error from putting the [] around it

Anyone able to cure my confusion?

Vin
Nov 20 '05 #1
4 5526
Hi,

Any keyword when used as a variable name, will be enclosed in squre
brackets. Step is a keyword in Visual Basic .NET.

"Vincent Finn" <1@2.com> wrote in message
news:tb********************************@4ax.com...
Hi,

in some code I have there is a variable declared as
Dim [step] as String

what is the [] for in this case?

I thought it was an array at first but
as far as I can tell the variable is just a string

there is no compile error from putting the [] around it

Anyone able to cure my confusion?

Vin
Nov 20 '05 #2
Vincent,

When you want to use a already given name in your own inherrited class, by
instance DataRow you can write it as [DataRow].

public sub readrows (byval [DataRow] as DataRow)

I hope this helps?

Cor
Nov 20 '05 #3
On Thu, 22 Jul 2004 14:15:18 +0200, "Cor Ligthert"
<no**********@planet.nl> wrote:
Vincent,

When you want to use a already given name in your own inherrited class, by
instance DataRow you can write it as [DataRow].

public sub readrows (byval [DataRow] as DataRow)

I hope this helps?

Cor


Thanks to the two of you

I am no longer confused :)

Vin

Nov 20 '05 #4
* Vincent Finn <1@2.com> scripsit:
in some code I have there is a variable declared as
Dim [step] as String

what is the [] for in this case?


<URL:http://msdn.microsoft.com/library/en-us/vbls7/html/vblrfVBSpec2_2.asp>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

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

Similar topics

3
by: Dave | last post by:
Greetings All, I have never seen this error before, and after an extensive search of Groups, I cannot find a satisfactory answer to my basic question. What exactly does "is not a member of...
10
by: Water Cooler v2 | last post by:
I've asked myself this question in the past but couldn't afford more time to it (I program other languages for my bread and butter), so I'll ask now since it's never too late. What does the...
9
by: Fei Liu | last post by:
In Accellerated C++, the author recommends that in a header file one should not declare using std::string, using std::vector etc instead one should directly specify the namespace specifier in...
13
by: bwaichu | last post by:
Now, I read the faq, and it suggests using sprintf. However, I want to all ways know where the integer finishes in the string. Basically, I want to: nbr | other data But the other data all...
3
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Does anyone know why I have no "Step Into" option during debugging in VS 2005/C# app? I have "Step Over" but no "Step Into" even though it would be stepping into one of my own functions inside the...
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...
1
by: dhtmlkitchen | last post by:
Why does "foo" instanceof String return false? It just seems counterintuitive to me. I mean, sure, I can always check the constructor: var fooVar = "foo"; var isString =...
21
by: Sami | last post by:
string = "" or string = string.Empty? should is the proper way? Sami
11
by: Anil Gupte/iCinema.com | last post by:
When I use this Dim instance As New Timer I get the error: Error 1 Overload resolution failed because no accessible 'New' accepts this number of arguments. Yet, in the help section for...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.