GetErrorString Method Example
The following is an example of how a user might use GetErrorString to handle errors that occur. In this example, setting Bitmap1.CurrentImage = 4 causes an error, forcing the error handler to take effect.
Dim sErrString As String
On Error GoTo errhand
Bitmap1.CurrentImage = 4
errhand:
sErrString = System.GetErrorString(Err.Number)