whats faster to execute this "IF" statement or this "select" statement? (and why?)
IF RECADD = 0 THEN outr0
IF RECADD = 1 THEN outr1 ' if request is for RECADD#1 then goto RECADD#1 routine
IF RECADD = 2 THEN outr2 ' if request is for RECADD#2 then goto RECADD#2 routine
IF RECADD = 3 THEN outr3 ' if request is for RECADD#3 then goto RECADD#3 routine
IF RECADD = 4 THEN outr4 ' if request is for RECADD#4 then goto RECADD#4 routine
IF RECADD = 5 THEN outr5 ' if request is for RECADD#5 then goto RECADD#5 routine
IF RECADD = 6 THEN outr6 ' if request is for RECADD#6 then goto RECADD#6 routine
or
SELECT CASE RECADD
CASE 1
GOTO outr1
CASE 2
GOTO outr2
CASE 3
GOTO outr3
CASE 4
GOTO outr4
CASE 5
GOTO outr5
CASE 6
GOTO outr6
ELSE
END SELECT
Bookmarks