[fpc-devel] Format Function
Amir at Aavani.net
Amir at Aavani.net
Tue Jan 29 06:44:03 CET 2019
Hi,
I am looking for a version of Format function that works with
WideStrings. One way to implement this is to use something like the
folllowing:
function GetNames(const FirstName, LastName: WideString; ID: Integer):
WideString;
begin
Result := ReadWideString(Format('%d %s %s', [ID,
WideStringToUTF8(Name1), WideStringToUTF8(Name2)])
end;
Is there any better way to do this?
Thanks,
Amir
More information about the fpc-devel
mailing list