J
jmls
Guest
don't take the above code as an example of the actual code. In this case there was a choice right at the start (it's a string parsing routine, if there is no "\" in the string then there's no need to parse, hence it makes sense to return straight away. Otherwise I would have to reverse the test instead of /** no need to parse if \ is not present as there are no escapes */ if index(lv_Data,"\") eq 0 then return lv_Data. I would have to say /** no need to parse if \ is not present as there are no escapes */ if index(lv_Data,"\") gt 0 then do: /* load of code */ and have to indent the whole block of code in the do .. end. I prefer the first way 
Continue reading...

Continue reading...