Hey guys,
I'm currently working on this little program that helps people at my work make IT requests, everything is working nice and pollished except for one error handelling I can't seem to figure out.
I have 2 combo box
$CBDebut = GUICtrlCreateCombo("", 312, 112, 137, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "8:00|8:30|9:00|9:30|10:00|10:30|11:00|11:30|12:00|12:30|13:00|13:30|14:00|14:30|15:00|15:30|16:00|16:30|17:00|17:30", "8:00")
$CBFin = GUICtrlCreateCombo("", 312, 176, 137, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "8:00|8:30|9:00|9:30|10:00|10:30|11:00|11:30|12:00|12:30|13:00|13:30|14:00|14:30|15:00|15:30|16:00|16:30|17:00|17:30", "12:00")
So the goal with this is people can reserve our conference rooms, but If they select 10:00 on $CBDebut and 9:00 on $CBFin it sould give me an error since they can only schedule the room for 1 day at a time, so I need to make sure that the first combo is always smaller then the second one. but since its not numerical value I can't figure it out.
If the :30 cauz a problem I could remove them, but I would like for it to say.
Thank you guys for the help!