Mega Code Archive

 
Categories / VB.Net Tutorial / Data Type
 

StringBuilder AppendFormat

Imports System public class Test    public Shared Sub Main         Dim objSB As New Text.StringBuilder         objSB.AppendFormat("Your balance as of {0:D} is ${1: #,###.00}", _             #5/16/2002#, 19950.4)         Console.WriteLine(objSB.ToString)    End Sub     End class Your balance as of May 16, 2002 is $ 19,950.40