I have a function declared as a Variant, and sometimes it will return a range, and sometimes a single value. is there a way to setup an if statement depending on the return type?
<code>
If TypeName(findNearest(referenceFlow, referenceDTQFlow, 0) = "Double") Then
interpolate = 9999.9999
Exit Function
Endif
</code>
I hate using exits, but under certain circumstances, I want the program to not do anything. Thanks.
BT
<code>
If TypeName(findNearest(referenceFlow, referenceDTQFlow, 0) = "Double") Then
interpolate = 9999.9999
Exit Function
Endif
</code>
I hate using exits, but under certain circumstances, I want the program to not do anything. Thanks.
BT