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

[text] As String, what is the [ ] for?

In the code on this page: http://msdn2.microsoft.com/en-us/library/
ms171728.aspx it shows:

Delegate Sub SetTextCallback([text] As String)

What is the purpose of [ ] surrounding 'text'?

I've done some quick tests and found nothing differs when i use it, or
not.

thanks,

Zytan

Feb 15 '07 #1
5 1115
Since this mutiliated my thread title, I will show it here:
[text] As String, what is the [ ] for?
In the code on this page:http://msdn2.microsoft.com/en-us/library/
ms171728.aspx it shows:
Since this also mutilated my url, i will show it again:
http://msdn2.microsoft.com/en-us/library/ms171728.aspx

Zytan

Feb 15 '07 #2
Zytan wrote:
In the code on this page: http://msdn2.microsoft.com/en-us/library/
ms171728.aspx it shows:

Delegate Sub SetTextCallback([text] As String)

What is the purpose of [ ] surrounding 'text'?

I've done some quick tests and found nothing differs when i use it, or
not.
Isn't it for when you "want" to use a reserved word as a variable name, the
same as in SQL?

Andrew
Feb 15 '07 #3
It's not required for your example, but in general it's purpose is to allow
you to use reserved words as identifiers.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: C#/VB to Python converter
"Zytan" wrote:
In the code on this page: http://msdn2.microsoft.com/en-us/library/
ms171728.aspx it shows:

Delegate Sub SetTextCallback([text] As String)

What is the purpose of [ ] surrounding 'text'?

I've done some quick tests and found nothing differs when i use it, or
not.

thanks,

Zytan

Feb 15 '07 #4
Isn't it for when you "want" to use a reserved word as a variable name, the
same as in SQL?
Thank you, Andrew!!!

Zytan

Feb 15 '07 #5
It's not required for your example, but in general it's purpose is to allow
you to use reserved words as identifiers.
Thanks, David!

Zytan

Feb 15 '07 #6

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

Similar topics

14
by: Joe | last post by:
Hello All: I am trying to dynamically populate a web page with literal content and controls (textboxes and checkboxes (and eventually two buttons - the buttons do not appear in the code yet). I...
3
by: bbepristis | last post by:
Hey all I have this code that reads from one text file writes to another unless im on a certian line then it writes the new data however it only seems to do about 40 lines then quits and I cant...
5
by: CCLeasing | last post by:
Hello, I have searched google but can not find a straight forward answer to my problem. Hopefuly someone will be kind enough to offer their expertise. Please forgive if this seems a bit convoluted...
0
by: JosAH | last post by:
Greetings, Introduction Before we start designing and implementing our text builder class(es), I'd like to mention a reply by Prometheuzz: he had a Dutch version of the entire bible ...
0
by: JosAH | last post by:
Greetings, the last two article parts described the design and implementation of the text Processor which spoonfeeds paragraphs of text to the LibraryBuilder. The latter object organizes, cleans...
0
by: JosAH | last post by:
Greetings, welcome back; above we discussed the peripherals of the Library class: loading and saving such an instantiation of it, the BookMark interface and then some. This part of the article...
4
by: pablorp80 | last post by:
Hello, Here is what I need: I need the focus and the cursor set to a textbox named txtGT, every time no matter if it is the first page load or whether it is a postback. Here is the problem: I...
0
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only,...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
1
DebadattaMishra
by: DebadattaMishra | last post by:
Introduction In case of rich applications, you must have observed that a text field behaves like a dynamic combo box. When the user enters some characters in the text field, a popup will come up...
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: 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: 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
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...
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
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...
0
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...

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.