I want to know if it is correct to consider Delphi's Format()
function to be an alternative to wsprintf()
?
I want to produce the same output as this:
wsprintf( nameFile, "%s_%d_%08x.pfx", nameStore, c_certs, GetTickCount());
In Delphi, I'm trying to use this:
// Where "Mem" is a TMemoryStream variable
Mem.SaveToFile(NameStore + '_' + IntToStr(I) + '_' + Format('%08x', [GetTickCount]) + '.pfx');
Am I'm on the right track?