Hi ALL,
I'm using VS2010 C# 4.0.
I have a method declared:
and am attempting to call with the following:Code:public spGetBorderauxLog(String Client, String ProcessDate, Int16? Status, Boolean? Actioned)
I'm receiving the red line under the following text:Code:...spGetBorderauxLog(drpClient.Text, datepicker.Value == "" ? null : datepicker.Value, drpStatus.SelectedItem.Value == "" ? null : Convert.ToInt16(drpStatus.SelectedItem.Value), null);
Stating Type of conditional expression cannot be determined because there is no implicit conversion between '<null>' and 'short'Code:null : Convert.ToInt16(drpStatus.SelectedItem.Value)
I've declared the parameter as nullable, so I cannot see the problem.




Reply With Quote