You print a formatted string. {0} means insert the first parameter following the format string; in this case, the value associated with the rtf key.
For String.Format, which is similar if you have something like
you will create the line "This is a test . Value 42 ".
You can also use expressions and print values ββseveral times:
// Format string {0} {1} {2} String.Format("Fib: {0}, {0}, {1}, {2}", 1, 1+1, 1+2)
yielding "Fib: 1 , 1 , 2 , 3 "
More details at http://msdn.microsoft.com/en-us/library/txafckwd.aspx , which talks about compound formatting.
Daniel LeCheminant Feb 09 '09 at 23:29 2009-02-09 23:29
source share