Click to See Complete Forum and Search --> : MessageBox Question


lior6543
January 30th, 2005, 11:22 AM
I would like to use MessageBox::Show to print out a string with some variables in it:

int nNum = 5;

"Item found {0} times", nNum

How can I do that?

lloydy
January 30th, 2005, 04:50 PM
String* MyString = String::Format("Item found {0} times", nNum);

MessageBox::Show(MyString);