How do I check if a parameter exists?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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