What are square brackets used for?
What's the difference between something like
Dim strName as String, and
Dim strName as [String] ?
And where/why would you use [ ] if there is a difference?
Thank you in advance.
public enum playstate play pause [stop] next end enum |
elf_sander wrote:
It is to create variable which is already used like stop...
public enum playstate
play
pause
[stop]
next
end enum
I don't get it, sorry, but I too don't know about this [] thing. And Google is useless.
Public Sub Stop() _Stopped = True End Sub |
You would get a compile error. Adding brackets around Stop allows you to use it. In vb.classic this wasn't available.
Cheers,
Chid