I've written some validation routines that take a form field as a parameter.
I want to adapt the routines so that they can take either form fields OR strings. I therefore need to be able to test for the parameter's type because if it's a field I'll use ParamName.value to get the value, where as if it's a String this will throw an error.
I've studied Java and think there's a method called .instanceOf which can be applied to objects, but what type is a Form Field and how is this method used?
Thanks!
Gareth.
I want to adapt the routines so that they can take either form fields OR strings. I therefore need to be able to test for the parameter's type because if it's a field I'll use ParamName.value to get the value, where as if it's a String this will throw an error.
I've studied Java and think there's a method called .instanceOf which can be applied to objects, but what type is a Form Field and how is this method used?
Thanks!
Gareth.