Herman,
No, the bracket does not have alternate meaning when used with data
types. Brackets allow you to create escaped or verbatim identifiers.
This is useful when you need to refer to an identifier that is also a
keyword. The most common scenario is the interaction between different
programming languages. For example, a C# programmer may think Alias
would be a good choice for a property name not knowing that it is a
keyword in VB. A VB programmer would need to use brackets when
referring to that property.
Brian
Herman Jones wrote:
This example seems to be a little different. In your example you're using
[Dim] as a variable name. It comes before the "As" keyword.
The sample code I found has [String] after the "As" keyword. I don't thing
that "String" is being used as the variable name because the program later
refers to the "sWork" variable.
Is it possible that the brackets have some other purpose when they bracket a
datatype?