troubleshooting Question

Formating a String

Avatar of Applicationmaker
Applicationmaker asked on
Delphi
5 Comments1 Solution206 ViewsLast Modified:
I want to Format a String with other String variables..

Like
MyString:='The Name of the User is %s %s';
MyString:=FormatString(MyString,UserFirstName,UserLastName);
ShowMessage(MyString);

I already programmed this by myself, but i want to know if there is a function or procedure which does this...
I knowed the C++ Formating procedure printf.
but i want to have it for Delphi.

Thanks for help


ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros