String[] invoices = Invoices.Lines;
foreach (String inv in invoices)
{
StripNonNumerics(inv);
}public string StripNonNumerics(string inputString)
{
return new String(inputString.Where(c => Char.IsDigit(c)).ToArray());
This is the bit that is bothering me ------ Although it says return new string how to i output this say to a messagebox? e.g. messagebox.show(inputstring) ???
Thanks in advance
Anthony
}

VulpesRank #55 · 29.2K reputationPosted Jul 7, 2011, 11:57 PM EDT
Zoran HorvatRank #792 · 2.9K reputationPosted Jul 7, 2011, 11:58 PM EDT
MessageBox.Show(inputString);
Here are all the overrides of the Show method: http://msdn.microsoft.com/en-us/library/system.windows.forms.messagebox.show.aspx
Zoran
Anthony Clarke99 reputationPosted Jul 8, 2011, 12:18 AM EDT
Thank you so much, again for your speedy response :)