I'm looking for a solution to create a function,that retrieves actual data (as String format), and returns the value converted to a specific data type.
For example, function gets a string "True", and it could be returned as Boolean (True), or whatever datatype (of course conversion from "true" to Double, for example, would cause a handled "CannotConvertException")
The idea is, that the calling method could spesify the data type as Optional Byval, if it is nothing (default), return type will always be String.
Is this possible to do? If it is, kick me with a hint.
Of course, I could pass the return type as string and use select case for conversion. But I would like to know it this is possible to solve some easier/more effective way.
Yours,
Des
For example, function gets a string "True", and it could be returned as Boolean (True), or whatever datatype (of course conversion from "true" to Double, for example, would cause a handled "CannotConvertException")
The idea is, that the calling method could spesify the data type as Optional Byval, if it is nothing (default), return type will always be String.
Is this possible to do? If it is, kick me with a hint.
Of course, I could pass the return type as string and use select case for conversion. But I would like to know it this is possible to solve some easier/more effective way.
Yours,
Des