use datatype object. you can use the is operator to determine type
void mtProc(object obj)
{
if (obj is int)
...
else if (obj is string)
...
else if (obj is myDatatype)
....
}
to call any methods other than the object generic, you will need to use a
cast.
note: if you are call calling a com routine, object is also the type that is
used for a variant parameter (or return value)
-- bruce (sqlwork.com)