T
tshad
I have the following:
IIF(Shift2StartHour.SelectedIndex + Shift2StartMinute.SelectedIndex +
Shift2StartAmPm.SelectedIndex = 0, _
-1,GetTimeOfDay(Shift2StartHour.SelectedValue,Shift2StartMinute.SelectedValue,Shift2StartAmPm.SelectedValue)
I am getting an error on the GetTimeOfDay function that expects 2 integers
and a string - "Cast from string "" to type 'Integer' is not valid.
This is true, if the SelectedIndex were 0 - But my statement says if all 3
selected indexes are 0, then send back a -1. If I change the GetTimeOfDay
function to 0, then it does send back a -1.
I assume that it evaluates both the true and false results regardless of
what the result is.
Is there a way around this?
Thanks,
Tom
IIF(Shift2StartHour.SelectedIndex + Shift2StartMinute.SelectedIndex +
Shift2StartAmPm.SelectedIndex = 0, _
-1,GetTimeOfDay(Shift2StartHour.SelectedValue,Shift2StartMinute.SelectedValue,Shift2StartAmPm.SelectedValue)
I am getting an error on the GetTimeOfDay function that expects 2 integers
and a string - "Cast from string "" to type 'Integer' is not valid.
This is true, if the SelectedIndex were 0 - But my statement says if all 3
selected indexes are 0, then send back a -1. If I change the GetTimeOfDay
function to 0, then it does send back a -1.
I assume that it evaluates both the true and false results regardless of
what the result is.
Is there a way around this?
Thanks,
Tom