General information
Category:
Coding, syntax & commands
Hi All:
Feeling that IF's are faster than DO CASES, thought I'd ask.
Besides code readability, do you see any problems by replacing DO CASE with IF's.?
DO CASE
..CASE x="whatever1"
.....DO something
..CASE x="whatever2"
.....DO something
.....
..CASE x="whatever24"
.....DO something
ENDCASE
RETURN
.OR.
IF x="whatever1"
..DO something
..RETURN
ENDIF
IF x="whatever2"
..DO something
..RETURN
ENDIF
.......
IF x="whatever24"
..DO something
..RETURN
ENDIF
Mal
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only