27.01.2016, 19:55
Try the fixed code I posted above.
(response) is to check whether there was response to the dialog or not (if they pressed enter) so you'd use if, switch is used to switch between different situations/cases so that would be for the items listed (listitem).
I don't see the need for the first case 1: at all, correct me if I am missing something.
(response) is to check whether there was response to the dialog or not (if they pressed enter) so you'd use if, switch is used to switch between different situations/cases so that would be for the items listed (listitem).
I don't see the need for the first case 1: at all, correct me if I am missing something.