Label loss in side IF statement
Jan 16, 2009 10:24:39 GMT -5
Post by veneff on Jan 16, 2009 10:24:39 GMT -5
Hello,
Why can't the label [Label1] be found?
Dummy = 2
GOTO [Label1]
Dummy = 3
IF (Dummy = 3) THEN
[Label1]
GOTO [ExitLabel]
ELSE
GOTO [ExitLabel]
END IF
[ExitLabel]
It returns error:
Runtime Error in program 'untitled': GOTO [Label1]
Branch label not found: [Label1]
It does not matter if [Label1] is moved to the ELSE portion of the IF.
Vance
Why can't the label [Label1] be found?
Dummy = 2
GOTO [Label1]
Dummy = 3
IF (Dummy = 3) THEN
[Label1]
GOTO [ExitLabel]
ELSE
GOTO [ExitLabel]
END IF
[ExitLabel]
It returns error:
Runtime Error in program 'untitled': GOTO [Label1]
Branch label not found: [Label1]
It does not matter if [Label1] is moved to the ELSE portion of the IF.
Vance