473,750 Members | 2,529 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5539
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.c om...
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**********@p lanet.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
5962
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 'String'" mean specifically? I am developing in VB.NET and I was using the Collection datatype to store property and object values. However, another group where I work decided to use C#, and they want to use my base library objects. From
10
5320
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 qualifier "in place" mean here? Does that mean without using additional memory?
9
3783
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 code. for example, this is bad practice: header.h #include <string> using std::string;
13
6876
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 ways has to start at the same place. I had some problems using sprintf to accomplish this requirement. Maybe I am overlooking something. But sprintf translates the nbr exactly into
3
1858
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 same .cs file.
6
4593
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 classes. But if I use "string", it colors it in Navy blue as in C# reserved words (e.g. private, void, foreach, etc). What is the diff?
1
2295
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 = fooVar.constructor == String;
21
2976
by: Sami | last post by:
string = "" or string = string.Empty? should is the proper way? Sami
11
4238
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 Timer (in VB 2005) this is exactly the syntax shown. I also tried:
0
9002
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9399
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9345
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9259
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6817
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6083
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4717
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3328
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2228
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.