Log(format("%.4s -- %.4s",Array("Fred","Bloggs"))) ' limit string length to 4 (Bloggs is truncated to Blog)
Log(format("%2$s,%1$s was here!!",Array("Fred","Bloggs"))) ' reverse the args ( 2$ = arg#2, 1$ = arg#1 )
Log(format("local time : %tT",Array(DateTime.Now))) ' time format
Log(format("4 digit number : %04d",Array(21))) ' number with leading zeroes
Dim xx As String
xx = format("hex : %1$04x (%1$d)",Array(0x894)) 'number in hex and also show decimal value
Log(xx) ' refers to arg#1 twice