Jan 22, 2004 #1 crystalReporterNew Programmer Joined Jan 18, 2004 Messages 24 Location US Can someone point me out to compiling code for the Sprintf function in VB .NET? Thanks
Jan 23, 2004 #2 chiph Programmer Joined Jun 9, 1999 Messages 9,878 Location US sprintf() is a C and C++ function, but there's a way to do similar stuff in .NET using the .Format method on the String class: Code: Dim result As String = String.Format("{0} times {0} = {1}", _ number, number * number) MsgBox(result) Chip H. If you want to get the best response to a question, please check out FAQ222-2244 first Upvote 0 Downvote
sprintf() is a C and C++ function, but there's a way to do similar stuff in .NET using the .Format method on the String class: Code: Dim result As String = String.Format("{0} times {0} = {1}", _ number, number * number) MsgBox(result) Chip H. If you want to get the best response to a question, please check out FAQ222-2244 first