I have been looking at using String.Format the last couple of days and finding it very interesting. It especially looks useful to me for printing and reports. I do not yet know if that is one of its normal usages or not, but it looks to me like it might work very well for that.
My question, however, is about something that I got from Mike Strong and would like to know more about.
The code goes something like this:
What I am interested in is the StackTrace and under what other conditions this could be called other than As Exception?Code:Catch ex As Exception MessageBox.Show(String.Format("Message: {0} {1} StackTrace: {2}", ex.Message, vbNewLine, ex.StackTrace)) End Try




Reply With Quote
