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

  • Thread starter Thread starter Zytan
  • Start date Start date
Zytan said:
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
 
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
 
Back
Top