F
Filip D'haene
Hi,
I want to make a function like CType but can't figure out how to do this.
Function ConvertWhithoutException(ByVal Item As Object, ByVal aType As Type)
As Object
Dim output As Object = Nothing
Try
output = CType(Item, aType)
Catch ex As Exception
End Try
Return (output)
End Function
But this doesn't compile.
Does anyone know how to make a function I can use in the same manner that I
can use the CType-function?
Thanks,
Filip
I want to make a function like CType but can't figure out how to do this.
Function ConvertWhithoutException(ByVal Item As Object, ByVal aType As Type)
As Object
Dim output As Object = Nothing
Try
output = CType(Item, aType)
Catch ex As Exception
End Try
Return (output)
End Function
But this doesn't compile.
Does anyone know how to make a function I can use in the same manner that I
can use the CType-function?
Thanks,
Filip