G
Guest
I am trying to use an if statement to obtain a return value to use somewhere else in my program. Can you look at this code and tell me what needs to be added to the code to keep from getting an unassigned local variable sortParameter error
public string SortParameter(
string sortParamete
if (fiscalYearCheck.Checked == true
sortParameter = "wo11"
else if (custCheck.Checked == true
sortParameter = "wopm2"
return sortParameter
Thanks
Dav
public string SortParameter(
string sortParamete
if (fiscalYearCheck.Checked == true
sortParameter = "wo11"
else if (custCheck.Checked == true
sortParameter = "wopm2"
return sortParameter
Thanks
Dav