"John" <in**@nospam.in fovis.co.ukschr ieb
Hi
What is the purpose of exception.GetTy pe and what are the possible
values returned by it? Can it for example tell me if the exception
is of type DBConcurrencyEx ception?
GetType is inherited from Object. It returns the System.Type object
representing the instance type of the object. To check for a certain
type, use the TypeOf keyword (if typeof ex is DBConcurrencyEx ception
then). If you want to catch different types of exceptions and handle
them differently, you can write:
try
catch ex as DBConcurrencyEx ception
'...
catch ex as WhateverExcepti on
'...
catch ex as exception
'...
end try
Armin