Whats are Braces in VB.Net used for? Yet to figure this out.
I see it in various code..
{0}
Printable View
Whats are Braces in VB.Net used for? Yet to figure this out.
I see it in various code..
{0}
VB Code:
Dim myVal As Integer = 32 Console.WriteLine("Your number was {0}.", myVal)
The output would be:
Your number was 32.
Jeremy
Thanks, that explains it :)
and for direct initialization of arrays..or is it just in C#?
dim myarray() as string = { "hi", "by")
Nope its the same in VB, too.