clintv
10-18-2009, 08:50 PM
Hi,
I am about to create a function that displays the list of OR Nos that has been cancelled in a message box, but what made this very tricky is that if the OR Nos cancelled is sequential , I have to display it in range, if not then display it one by one. I dont know how to start this :huh: can someone help me with it please. Thank you. :)
eg.
if cancelled OR is or 1,2,3,4,5 i have to display in this manner->
"1-5 OR has been cancelled"
if cancelled OR is 1,2,3,5,6,8 then i have to dispaly it in this manner -> 1
"1-3, 5-6 and 8 OR has been cancelled"
I am about to create a function that displays the list of OR Nos that has been cancelled in a message box, but what made this very tricky is that if the OR Nos cancelled is sequential , I have to display it in range, if not then display it one by one. I dont know how to start this :huh: can someone help me with it please. Thank you. :)
eg.
if cancelled OR is or 1,2,3,4,5 i have to display in this manner->
"1-5 OR has been cancelled"
if cancelled OR is 1,2,3,5,6,8 then i have to dispaly it in this manner -> 1
"1-3, 5-6 and 8 OR has been cancelled"