Results 1 to 5 of 5

Thread: Question..

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Posts
    382

    Question..

    Whats are Braces in VB.Net used for? Yet to figure this out.
    I see it in various code..

    {0}

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207
    VB Code:
    1. Dim myVal As Integer = 32
    2. Console.WriteLine("Your number was {0}.", myVal)

    The output would be:
    Your number was 32.

    Jeremy

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Posts
    382
    Thanks, that explains it

  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    and for direct initialization of arrays..or is it just in C#?

    dim myarray() as string = { "hi", "by")
    \m/\m/

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Nope its the same in VB, 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