This is probably just wishful thinking...
Is there any way to check to see if an ASP/VBScript function is defined before calling it?
Here is my solution which works on the same principle, but the hacky-ness is pretty self-contained:
Function FunctionExists( func_name )
FunctionExists = False
On Error Resume Next
Dim f : Set f = GetRef(func_name)
If Err.number = 0 Then
FunctionExists = True
End If
On Error GoTo 0
End Function
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With