Access Parameters in Event
I try to use a parameter value to conditionally show or hide fields in my report but I can't find the syntax.
I've tried:
private void PageFooter1_BeforeLayout(object sender, EventArgs e)
{
if (Parameter("ParameterName") != "")
if (Get("ParameterName") != "")
if (Parameter<"ParameterName"> != "")
if (Parameter["ParameterName"] != "")
But none of them works. What is the correct syntax?
TIA
I've tried:
private void PageFooter1_BeforeLayout(object sender, EventArgs e)
{
if (Parameter("ParameterName") != "")
if (Get("ParameterName") != "")
if (Parameter<"ParameterName"> != "")
if (Parameter["ParameterName"] != "")
But none of them works. What is the correct syntax?
TIA
Comments
if (parameter.Equals(""))
Thanks, this works!
Hope it helps others who can't find it in the manual as well