As explained here (Composite Format String: http://msdn.microsoft.com/en-us/library/txafckwd.aspx ) for VB.NET and C#.NET (.NET Framework).
However, I have not seen this for VB6 anywhere, and google didn't return anything useful.
Here is some sample code for .NET Framework (VB.NET and C#.NET) that I would like to do, but in VB6:
In VB.NET:
Dim myName As String = "Fred"
String.Format("Name = {0}, hours = {1:hh}", myName, DateTime.Now)
In C#:
string myName = "Fred";
String.Format("Name = {0}, hours = {1:hh}", myName, DateTime.Now);
If anyone knows how to do this in VB6, or if it exists in some hidden corner of VB Classic, I would love to know. Thanks.