|
-
Jan 5th, 2003, 05:37 PM
#1
Thread Starter
Hyperactive Member
Question..
Whats are Braces in VB.Net used for? Yet to figure this out.
I see it in various code..
{0}
-
Jan 5th, 2003, 06:28 PM
#2
Addicted Member
VB Code:
Dim myVal As Integer = 32
Console.WriteLine("Your number was {0}.", myVal)
The output would be:
Your number was 32.
Jeremy
-
Jan 5th, 2003, 06:43 PM
#3
Thread Starter
Hyperactive Member
Thanks, that explains it
-
Jan 5th, 2003, 11:32 PM
#4
yay gay
and for direct initialization of arrays..or is it just in C#?
dim myarray() as string = { "hi", "by")
\m/  \m/
-
Jan 6th, 2003, 01:45 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|