473,387 Members | 1,693 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.

Brackets around variables

Lou
I see brackets in variable names in the help files code examples. What do
they mean
example [text}
Delegate Sub SetTextCallback(ByVal [text] As String)
Jul 26 '06 #1
3 1103
It allows to use a reserved keyword as an identifier.

For example :
Public Sub [Then](ByVal [String] As String)

End Sub

IMO not needed for Text that is unlikely a reserved keyword...
--
"Lou" <lo********@comcast.neta écrit dans le message de news:
ux**************@TK2MSFTNGP05.phx.gbl...
>I see brackets in variable names in the help files code examples. What do
they mean
example [text}
Delegate Sub SetTextCallback(ByVal [text] As String)


Jul 26 '06 #2
Lou
Thanks. I looked every where. I was amazed it wasn't in the on-line help.
"Patrice" <sc****@chez.comwrote in message
news:Oc**************@TK2MSFTNGP02.phx.gbl...
It allows to use a reserved keyword as an identifier.

For example :
Public Sub [Then](ByVal [String] As String)

End Sub

IMO not needed for Text that is unlikely a reserved keyword...
--
"Lou" <lo********@comcast.neta écrit dans le message de news:
ux**************@TK2MSFTNGP05.phx.gbl...
>>I see brackets in variable names in the help files code examples. What do
they mean
example [text}
Delegate Sub SetTextCallback(ByVal [text] As String)



Aug 8 '06 #3
Why would you want to do that?

-New to vb... just wondering if there would ever be a practical reason for
it instead of just calling
your sub " Then_A" or something else.

Why go thru the hassle or it later on down the road ?
I cant think of an instance where the function name matterd so much ?

Miro
"Lou" <lo********@comcast.netwrote in message
news:OO**************@TK2MSFTNGP03.phx.gbl...
Thanks. I looked every where. I was amazed it wasn't in the on-line help.
"Patrice" <sc****@chez.comwrote in message
news:Oc**************@TK2MSFTNGP02.phx.gbl...
>It allows to use a reserved keyword as an identifier.

For example :
Public Sub [Then](ByVal [String] As String)

End Sub

IMO not needed for Text that is unlikely a reserved keyword...
--
"Lou" <lo********@comcast.neta écrit dans le message de news:
ux**************@TK2MSFTNGP05.phx.gbl...
>>>I see brackets in variable names in the help files code examples. What do
they mean
example [text}
Delegate Sub SetTextCallback(ByVal [text] As String)




Aug 8 '06 #4

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

Similar topics

6
by: STF | last post by:
While reading the C++ tutorial in this page: http://www.cplusplus.com/doc/tutorial/tut2-2.html I'm astonished to learn that we could omit curly brackets in function declaration for single...
3
by: Eric Ellsworth | last post by:
Hi all, Does anyone have any bright ideas for Access' tendency to add square brackets when it parses queries, then tell you that the query syntax is invalid. In my case, I'm trying to do a LEFT...
7
by: Brian Henry | last post by:
i was just looking at the tcplistener example on the MSDN docs and saw this Dim bytes(1024) As Dim data As = Nothing the data types ar ein brackets, what is the significance of the brackets?...
1
by: Greg | last post by:
I have an Access db (actually, about 60 of them) that has a table with a field named Q#. This table gets read into a dataset. In the dataset, the field is also called Q#. But when I try to update...
10
by: Thorben Grosser | last post by:
Hello dear Newsgroup, my problem seems somehow silly, but after some googeling, I don't find a solution. The point is: I have an multiple select field to which I add values using some...
1
by: Greg Strong | last post by:
Hello All, Why would brackets be added to the SQL of a pass through query to Oracle? If I paste the debug print of the SQL statement into SQLPlus of Oracle's XE edition it works, and does NOT...
0
by: alan4cast | last post by:
I'm not a really new programmer, but I'm still working on learning all of the .net things that I should know. So when I came across this one, I started to dig into it so see if I could figure it...
5
by: alan4cast | last post by:
I posted this in the VB forum several days ago, and got no reply. Since it's specific to VB.Net I thought I'd try it here. I'm a relatively-experienced VB programmer, but I'm still working on...
4
by: Keith Hughitt | last post by:
Hi all, I am using someone else's script which expects input in the form of: ./script.py <arg1arg2 I was wondering if the angle-brackets here have a special meaning? It seems like they...
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: 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
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.