Results 1 to 2 of 2

Thread: Cander's VB .NET Tips conitinued :P

  1. #1

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Cander's VB .NET Tips conitinued :P

    Here is one for you. Suppose for some reason you need to use a reserved VB/.NET keyword or function name as a variable name. For isntance

    Dim String As Integer

    That will normally bring up a compile error. But lets say for some reason you need to use String as a variable name. How do you do it?
    Use brackets

    Dim [String] As Integer

    and every time you need to access it, make sure you do so with the brackets

    [String] = 50
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    then i am not using the same keyword...u can put [] with other non-type words too...

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