By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,569 Members | 1,630 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,569 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
* 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 discussion thread is closed

Replies have been disabled for this discussion.