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
}
VulpesPosted Jul 8, 2011, 3:57 AM
Anthony ClarkePosted Jul 8, 2011, 4:18 AM
Thank you so much, again for your speedy response :)
Zoran HorvatPosted Jul 8, 2011, 3:58 AM
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