Returns the value of the named survey parameter.
The value of the named survey parameter.
Parameters are always of type String but can be coerced in .NET if it is known that the parameter value will always hold an appropriate value.
It may be desirable to write some of your hooks in a more generalized fashion but have them run slightly differently in the case of certain surveys. You can use parameters to achieve this. For example, an EndPageContent hook could be coded to provide the content as an html table with borders or not. You can set up the hook to look at the value of a survey parameter named “ECBORDERSTYLE” to dictate which style to return. Parameters also have the added benefit of being translatable, mitigating the need for hook changes when different languages are needed.
If the named parameter does not exist, an empty string is returned.
HookContext Class | DatStat.Collector Namespace