Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
harvey_craig2RCUH
1034 Views, 10 Replies

How do I check if a parameter exists?

As goes the title, I have tried to mimic the shared version:

SharedVariable.Exists("VariableName")

 by doing this:

If Parameter.Exists(Connection, "Hex_AFc") Then
	MsgBox("this parameter exists")
Else
	MsgBox("this parameter does not exist")
End If

but that doesn't work. The best I've managed is a try catch:

Try
	If Parameter(Connection, "Hex_AFc")
		MsgBox("this parameter exists")
	End If
Catch
	MsgBox("this parameter does not exist")
End Try

but it's not very slick. Is there a better way?

 

Thanks,

Harvey