Results 1 to 3 of 3

Thread: A quick ? about syntax in VB.Net

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    12

    A quick ? about syntax in VB.Net

    Please explain the purpose of the [] around the variable name and type decal. This code is legal and in a M.S. Example, but the help doesn't explain why it is this way.

    Public Sub New([text] As [String])
    Dont Even Think of spamming me.....

  2. #2
    New Member
    Join Date
    Jul 2001
    Posts
    4
    the [] is to allow the use of keywords as function or variable names.

    Public Sub [For](byval [Me] as string)

    However, since you will have to use the [] everywhere, you might aswell come up with difference names.


    Keyser Soze

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    12
    Thanks, I thought maybe it was for something like that. However the only function it is used is a inherited one so I wanted to be sure.

    Ben
    Dont Even Think of spamming me.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width